Skip to content

Commit 3c5a9ca

Browse files
committed
Support API ListGatewayIntranetSupportedZone.
1 parent 4cf7d6b commit 3c5a9ca

File tree

5 files changed

+178
-5
lines changed

5 files changed

+178
-5
lines changed

AlibabacloudEas20210701.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 = "AlibabacloudEas20210701"
4-
spec.version = "6.1.0"
4+
spec.version = "6.2.0"
55
spec.license = "Apache 2.0"
66
spec.summary = "Alibaba Cloud eas (20210701) SDK Library for Swift"
77
spec.homepage = "https://github.com/alibabacloud-sdk-swift/eas-20210701"

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

1919
```ogdl
20-
github "alibabacloud-sdk-swift/eas-20210701" "6.1.0"
20+
github "alibabacloud-sdk-swift/eas-20210701" "6.2.0"
2121
```
2222

2323
### Swift 包管理工具
@@ -26,7 +26,7 @@ github "alibabacloud-sdk-swift/eas-20210701" "6.1.0"
2626

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

1919
```ogdl
20-
github "alibabacloud-sdk-swift/eas-20210701" "6.1.0"
20+
github "alibabacloud-sdk-swift/eas-20210701" "6.2.0"
2121
```
2222

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

2727
```swift
2828
dependencies: [
29-
.package(url: "https://github.com/alibabacloud-sdk-swift/eas-20210701.git", from: "6.1.0")
29+
.package(url: "https://github.com/alibabacloud-sdk-swift/eas-20210701.git", from: "6.2.0")
3030
]
3131
```
3232

Sources/AlibabacloudEas20210701/Client.swift

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2043,6 +2043,33 @@ open class Client : AlibabacloudOpenApi.Client {
20432043
return try await listGatewayIntranetLinkedVpcPeerWithOptions(ClusterId as! String, GatewayId as! String, request as! ListGatewayIntranetLinkedVpcPeerRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions)
20442044
}
20452045

2046+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
2047+
public func listGatewayIntranetSupportedZoneWithOptions(_ GatewayId: String, _ ClusterId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListGatewayIntranetSupportedZoneResponse {
2048+
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
2049+
"headers": headers as! [String: String]
2050+
])
2051+
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
2052+
"action": "ListGatewayIntranetSupportedZone",
2053+
"version": "2021-07-01",
2054+
"protocol": "HTTPS",
2055+
"pathname": "/api/v2/gateways/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(ClusterId)) + "/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(GatewayId)) + "/intranet_supported_zone",
2056+
"method": "GET",
2057+
"authType": "AK",
2058+
"style": "ROA",
2059+
"reqBodyType": "json",
2060+
"bodyType": "json"
2061+
])
2062+
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
2063+
return Tea.TeaConverter.fromMap(ListGatewayIntranetSupportedZoneResponse(), tmp)
2064+
}
2065+
2066+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
2067+
public func listGatewayIntranetSupportedZone(_ GatewayId: String, _ ClusterId: String) async throws -> ListGatewayIntranetSupportedZoneResponse {
2068+
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
2069+
var headers: [String: String] = [:]
2070+
return try await listGatewayIntranetSupportedZoneWithOptions(GatewayId as! String, ClusterId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions)
2071+
}
2072+
20462073
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
20472074
public func listGroupsWithOptions(_ request: ListGroupsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListGroupsResponse {
20482075
try TeaUtils.Client.validateModel(request)
@@ -2839,6 +2866,9 @@ open class Client : AlibabacloudOpenApi.Client {
28392866
if (!TeaUtils.Client.isUnset(request.enableIntranet)) {
28402867
body["EnableIntranet"] = request.enableIntranet!;
28412868
}
2869+
if (!TeaUtils.Client.isUnset(request.enableSSLRedirection)) {
2870+
body["EnableSSLRedirection"] = request.enableSSLRedirection!;
2871+
}
28422872
if (!TeaUtils.Client.isUnset(request.instanceType)) {
28432873
body["InstanceType"] = request.instanceType ?? "";
28442874
}

Sources/AlibabacloudEas20210701/Models.swift

Lines changed: 143 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6808,6 +6808,8 @@ public class DescribeGatewayResponseBody : Tea.TeaModel {
68086808

68096809
public var requestId: String?
68106810

6811+
public var SSLRedirectionEnabled: Bool?
6812+
68116813
public var status: String?
68126814

68136815
public var updateTime: String?
@@ -6862,6 +6864,9 @@ public class DescribeGatewayResponseBody : Tea.TeaModel {
68626864
if self.requestId != nil {
68636865
map["RequestId"] = self.requestId!
68646866
}
6867+
if self.SSLRedirectionEnabled != nil {
6868+
map["SSLRedirectionEnabled"] = self.SSLRedirectionEnabled!
6869+
}
68656870
if self.status != nil {
68666871
map["Status"] = self.status!
68676872
}
@@ -6908,6 +6913,9 @@ public class DescribeGatewayResponseBody : Tea.TeaModel {
69086913
if dict.keys.contains("RequestId") {
69096914
self.requestId = dict["RequestId"] as! String
69106915
}
6916+
if dict.keys.contains("SSLRedirectionEnabled") {
6917+
self.SSLRedirectionEnabled = dict["SSLRedirectionEnabled"] as! Bool
6918+
}
69116919
if dict.keys.contains("Status") {
69126920
self.status = dict["Status"] as! String
69136921
}
@@ -7020,14 +7028,22 @@ public class DescribeResourceResponseBody : Tea.TeaModel {
70207028

70217029
public var cpuCount: Int32?
70227030

7031+
public var cpuUsed: Int32?
7032+
70237033
public var createTime: String?
70247034

70257035
public var extraData: String?
70267036

70277037
public var gpuCount: Int32?
70287038

7039+
public var gpuUsed: Double?
7040+
70297041
public var instanceCount: Int32?
70307042

7043+
public var memory: Int32?
7044+
7045+
public var memoryUsed: Int32?
7046+
70317047
public var message: String?
70327048

70337049
public var ownerUid: String?
@@ -7068,6 +7084,9 @@ public class DescribeResourceResponseBody : Tea.TeaModel {
70687084
if self.cpuCount != nil {
70697085
map["CpuCount"] = self.cpuCount!
70707086
}
7087+
if self.cpuUsed != nil {
7088+
map["CpuUsed"] = self.cpuUsed!
7089+
}
70717090
if self.createTime != nil {
70727091
map["CreateTime"] = self.createTime!
70737092
}
@@ -7077,9 +7096,18 @@ public class DescribeResourceResponseBody : Tea.TeaModel {
70777096
if self.gpuCount != nil {
70787097
map["GpuCount"] = self.gpuCount!
70797098
}
7099+
if self.gpuUsed != nil {
7100+
map["GpuUsed"] = self.gpuUsed!
7101+
}
70807102
if self.instanceCount != nil {
70817103
map["InstanceCount"] = self.instanceCount!
70827104
}
7105+
if self.memory != nil {
7106+
map["Memory"] = self.memory!
7107+
}
7108+
if self.memoryUsed != nil {
7109+
map["MemoryUsed"] = self.memoryUsed!
7110+
}
70837111
if self.message != nil {
70847112
map["Message"] = self.message!
70857113
}
@@ -7120,6 +7148,9 @@ public class DescribeResourceResponseBody : Tea.TeaModel {
71207148
if dict.keys.contains("CpuCount") {
71217149
self.cpuCount = dict["CpuCount"] as! Int32
71227150
}
7151+
if dict.keys.contains("CpuUsed") {
7152+
self.cpuUsed = dict["CpuUsed"] as! Int32
7153+
}
71237154
if dict.keys.contains("CreateTime") {
71247155
self.createTime = dict["CreateTime"] as! String
71257156
}
@@ -7129,9 +7160,18 @@ public class DescribeResourceResponseBody : Tea.TeaModel {
71297160
if dict.keys.contains("GpuCount") {
71307161
self.gpuCount = dict["GpuCount"] as! Int32
71317162
}
7163+
if dict.keys.contains("GpuUsed") {
7164+
self.gpuUsed = dict["GpuUsed"] as! Double
7165+
}
71327166
if dict.keys.contains("InstanceCount") {
71337167
self.instanceCount = dict["InstanceCount"] as! Int32
71347168
}
7169+
if dict.keys.contains("Memory") {
7170+
self.memory = dict["Memory"] as! Int32
7171+
}
7172+
if dict.keys.contains("MemoryUsed") {
7173+
self.memoryUsed = dict["MemoryUsed"] as! Int32
7174+
}
71357175
if dict.keys.contains("Message") {
71367176
self.message = dict["Message"] as! String
71377177
}
@@ -10136,6 +10176,8 @@ public class ListGatewayResponseBody : Tea.TeaModel {
1013610176

1013710177
public var replicas: Int32?
1013810178

10179+
public var SSLRedirectionEnabled: Bool?
10180+
1013910181
public var status: String?
1014010182

1014110183
public var updateTime: String?
@@ -10184,6 +10226,9 @@ public class ListGatewayResponseBody : Tea.TeaModel {
1018410226
if self.replicas != nil {
1018510227
map["Replicas"] = self.replicas!
1018610228
}
10229+
if self.SSLRedirectionEnabled != nil {
10230+
map["SSLRedirectionEnabled"] = self.SSLRedirectionEnabled!
10231+
}
1018710232
if self.status != nil {
1018810233
map["Status"] = self.status!
1018910234
}
@@ -10224,6 +10269,9 @@ public class ListGatewayResponseBody : Tea.TeaModel {
1022410269
if dict.keys.contains("Replicas") {
1022510270
self.replicas = dict["Replicas"] as! Int32
1022610271
}
10272+
if dict.keys.contains("SSLRedirectionEnabled") {
10273+
self.SSLRedirectionEnabled = dict["SSLRedirectionEnabled"] as! Bool
10274+
}
1022710275
if dict.keys.contains("Status") {
1022810276
self.status = dict["Status"] as! String
1022910277
}
@@ -10897,6 +10945,93 @@ public class ListGatewayIntranetLinkedVpcPeerResponse : Tea.TeaModel {
1089710945
}
1089810946
}
1089910947

10948+
public class ListGatewayIntranetSupportedZoneResponseBody : Tea.TeaModel {
10949+
public var requestId: String?
10950+
10951+
public var zones: [String]?
10952+
10953+
public override init() {
10954+
super.init()
10955+
}
10956+
10957+
public init(_ dict: [String: Any]) {
10958+
super.init()
10959+
self.fromMap(dict)
10960+
}
10961+
10962+
public override func validate() throws -> Void {
10963+
}
10964+
10965+
public override func toMap() -> [String : Any] {
10966+
var map = super.toMap()
10967+
if self.requestId != nil {
10968+
map["RequestId"] = self.requestId!
10969+
}
10970+
if self.zones != nil {
10971+
map["Zones"] = self.zones!
10972+
}
10973+
return map
10974+
}
10975+
10976+
public override func fromMap(_ dict: [String: Any]) -> Void {
10977+
if dict.keys.contains("RequestId") {
10978+
self.requestId = dict["RequestId"] as! String
10979+
}
10980+
if dict.keys.contains("Zones") {
10981+
self.zones = dict["Zones"] as! [String]
10982+
}
10983+
}
10984+
}
10985+
10986+
public class ListGatewayIntranetSupportedZoneResponse : Tea.TeaModel {
10987+
public var headers: [String: String]?
10988+
10989+
public var statusCode: Int32?
10990+
10991+
public var body: ListGatewayIntranetSupportedZoneResponseBody?
10992+
10993+
public override init() {
10994+
super.init()
10995+
}
10996+
10997+
public init(_ dict: [String: Any]) {
10998+
super.init()
10999+
self.fromMap(dict)
11000+
}
11001+
11002+
public override func validate() throws -> Void {
11003+
try self.body?.validate()
11004+
}
11005+
11006+
public override func toMap() -> [String : Any] {
11007+
var map = super.toMap()
11008+
if self.headers != nil {
11009+
map["headers"] = self.headers!
11010+
}
11011+
if self.statusCode != nil {
11012+
map["statusCode"] = self.statusCode!
11013+
}
11014+
if self.body != nil {
11015+
map["body"] = self.body?.toMap()
11016+
}
11017+
return map
11018+
}
11019+
11020+
public override func fromMap(_ dict: [String: Any]) -> Void {
11021+
if dict.keys.contains("headers") {
11022+
self.headers = dict["headers"] as! [String: String]
11023+
}
11024+
if dict.keys.contains("statusCode") {
11025+
self.statusCode = dict["statusCode"] as! Int32
11026+
}
11027+
if dict.keys.contains("body") {
11028+
var model = ListGatewayIntranetSupportedZoneResponseBody()
11029+
model.fromMap(dict["body"] as! [String: Any])
11030+
self.body = model
11031+
}
11032+
}
11033+
}
11034+
1090011035
public class ListGroupsRequest : Tea.TeaModel {
1090111036
public var filter: String?
1090211037

@@ -14131,6 +14266,8 @@ public class UpdateGatewayRequest : Tea.TeaModel {
1413114266

1413214267
public var enableIntranet: Bool?
1413314268

14269+
public var enableSSLRedirection: Bool?
14270+
1413414271
public var instanceType: String?
1413514272

1413614273
public var isDefault: Bool?
@@ -14159,6 +14296,9 @@ public class UpdateGatewayRequest : Tea.TeaModel {
1415914296
if self.enableIntranet != nil {
1416014297
map["EnableIntranet"] = self.enableIntranet!
1416114298
}
14299+
if self.enableSSLRedirection != nil {
14300+
map["EnableSSLRedirection"] = self.enableSSLRedirection!
14301+
}
1416214302
if self.instanceType != nil {
1416314303
map["InstanceType"] = self.instanceType!
1416414304
}
@@ -14181,6 +14321,9 @@ public class UpdateGatewayRequest : Tea.TeaModel {
1418114321
if dict.keys.contains("EnableIntranet") {
1418214322
self.enableIntranet = dict["EnableIntranet"] as! Bool
1418314323
}
14324+
if dict.keys.contains("EnableSSLRedirection") {
14325+
self.enableSSLRedirection = dict["EnableSSLRedirection"] as! Bool
14326+
}
1418414327
if dict.keys.contains("InstanceType") {
1418514328
self.instanceType = dict["InstanceType"] as! String
1418614329
}

0 commit comments

Comments
 (0)