Skip to content

Commit aeb2398

Browse files
committed
Support API CreateAppLayout.
1 parent b00f467 commit aeb2398

File tree

7 files changed

+1645
-158
lines changed

7 files changed

+1645
-158
lines changed

AlibabacloudRtc20180111.podspec

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

33
spec.name = "AlibabacloudRtc20180111"
4-
spec.version = "3.3.0"
4+
spec.version = "3.4.0"
55
spec.license = "Apache 2.0"
66
spec.summary = "Alibaba Cloud Real-Time Communication (20180111) SDK Library for Swift"
77
spec.homepage = "https://github.com/alibabacloud-sdk-swift/rtc-20180111"
@@ -18,8 +18,8 @@ Pod::Spec.new do |spec|
1818
spec.tvos.deployment_target = '13.0'
1919

2020
spec.dependency 'Tea', '~> 1.0.0'
21-
spec.dependency 'TeaUtils', '~> 1.0.5'
22-
spec.dependency 'AlibabacloudOpenApi', '~> 1.0.5'
21+
spec.dependency 'TeaUtils', '~> 1.0.6'
22+
spec.dependency 'AlibabacloudOpenApi', '~> 1.0.7'
2323
spec.dependency 'AlibabaCloudOpenApiUtil', '~> 1.0.1'
2424
spec.dependency 'AlibabacloudEndpointUtil', '~> 1.0.0'
2525

Cartfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
github aliyun/tea-swift ~> 1.0.0
2-
github alibabacloud-sdk-swift/tea-utils ~> 1.0.5
3-
github alibabacloud-sdk-swift/darabonba-openapi ~> 1.0.5
2+
github alibabacloud-sdk-swift/tea-utils ~> 1.0.6
3+
github alibabacloud-sdk-swift/darabonba-openapi ~> 1.0.7
44
github alibabacloud-sdk-swift/openapi-util ~> 1.0.1
55
github alibabacloud-sdk-swift/endpoint-util ~> 1.0.0

Package.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ let package = Package(
1616
dependencies: [
1717
// Dependencies declare other packages that this package depends on.
1818
.package(url: "https://github.com/aliyun/tea-swift.git", from: "1.0.0"),
19-
.package(url: "https://github.com/alibabacloud-sdk-swift/tea-utils", from: "1.0.5"),
20-
.package(url: "https://github.com/alibabacloud-sdk-swift/darabonba-openapi", from: "1.0.5"),
19+
.package(url: "https://github.com/alibabacloud-sdk-swift/tea-utils", from: "1.0.6"),
20+
.package(url: "https://github.com/alibabacloud-sdk-swift/darabonba-openapi", from: "1.0.7"),
2121
.package(url: "https://github.com/alibabacloud-sdk-swift/openapi-util", from: "1.0.1"),
2222
.package(url: "https://github.com/alibabacloud-sdk-swift/endpoint-util", from: "1.0.0"),
2323
],

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

1919
```ogdl
20-
github "alibabacloud-sdk-swift/rtc-20180111" "3.3.0"
20+
github "alibabacloud-sdk-swift/rtc-20180111" "3.4.0"
2121
```
2222

2323
### Swift 包管理工具
@@ -26,7 +26,7 @@ github "alibabacloud-sdk-swift/rtc-20180111" "3.3.0"
2626

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

1919
```ogdl
20-
github "alibabacloud-sdk-swift/rtc-20180111" "3.3.0"
20+
github "alibabacloud-sdk-swift/rtc-20180111" "3.4.0"
2121
```
2222

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

2727
```swift
2828
dependencies: [
29-
.package(url: "https://github.com/alibabacloud-sdk-swift/rtc-20180111.git", from: "3.3.0")
29+
.package(url: "https://github.com/alibabacloud-sdk-swift/rtc-20180111.git", from: "3.4.0")
3030
]
3131
```
3232

Sources/AlibabacloudRtc20180111/Client.swift

Lines changed: 144 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,48 @@ open class Client : AlibabacloudOpenApi.Client {
108108
return try await addRecordTemplateWithOptions(request as! AddRecordTemplateRequest, runtime as! TeaUtils.RuntimeOptions)
109109
}
110110

111+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
112+
public func createAppLayoutWithOptions(_ tmpReq: CreateAppLayoutRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateAppLayoutResponse {
113+
try TeaUtils.Client.validateModel(tmpReq)
114+
var request: CreateAppLayoutShrinkRequest = CreateAppLayoutShrinkRequest([:])
115+
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
116+
if (!TeaUtils.Client.isUnset(tmpReq.layout)) {
117+
request.layoutShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.layout, "Layout", "json")
118+
}
119+
var query: [String: Any] = [:]
120+
if (!TeaUtils.Client.isUnset(request.appId)) {
121+
query["AppId"] = request.appId ?? "";
122+
}
123+
if (!TeaUtils.Client.isUnset(request.clientToken)) {
124+
query["ClientToken"] = request.clientToken ?? "";
125+
}
126+
if (!TeaUtils.Client.isUnset(request.layoutShrink)) {
127+
query["Layout"] = request.layoutShrink ?? "";
128+
}
129+
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
130+
"query": AlibabaCloudOpenApiUtil.Client.query(query)
131+
])
132+
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
133+
"action": "CreateAppLayout",
134+
"version": "2018-01-11",
135+
"protocol": "HTTPS",
136+
"pathname": "/",
137+
"method": "POST",
138+
"authType": "AK",
139+
"style": "RPC",
140+
"reqBodyType": "formData",
141+
"bodyType": "json"
142+
])
143+
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
144+
return Tea.TeaConverter.fromMap(CreateAppLayoutResponse(), tmp)
145+
}
146+
147+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
148+
public func createAppLayout(_ request: CreateAppLayoutRequest) async throws -> CreateAppLayoutResponse {
149+
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
150+
return try await createAppLayoutWithOptions(request as! CreateAppLayoutRequest, runtime as! TeaUtils.RuntimeOptions)
151+
}
152+
111153
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
112154
public func createAppRecordTemplateWithOptions(_ tmpReq: CreateAppRecordTemplateRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateAppRecordTemplateResponse {
113155
try TeaUtils.Client.validateModel(tmpReq)
@@ -339,6 +381,48 @@ open class Client : AlibabacloudOpenApi.Client {
339381
return try await createMPULayoutWithOptions(request as! CreateMPULayoutRequest, runtime as! TeaUtils.RuntimeOptions)
340382
}
341383

384+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
385+
public func deleteAppLayoutWithOptions(_ tmpReq: DeleteAppLayoutRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteAppLayoutResponse {
386+
try TeaUtils.Client.validateModel(tmpReq)
387+
var request: DeleteAppLayoutShrinkRequest = DeleteAppLayoutShrinkRequest([:])
388+
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
389+
if (!TeaUtils.Client.isUnset(tmpReq.layout)) {
390+
request.layoutShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.layout, "Layout", "json")
391+
}
392+
var query: [String: Any] = [:]
393+
if (!TeaUtils.Client.isUnset(request.appId)) {
394+
query["AppId"] = request.appId ?? "";
395+
}
396+
if (!TeaUtils.Client.isUnset(request.clientToken)) {
397+
query["ClientToken"] = request.clientToken ?? "";
398+
}
399+
if (!TeaUtils.Client.isUnset(request.layoutShrink)) {
400+
query["Layout"] = request.layoutShrink ?? "";
401+
}
402+
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
403+
"query": AlibabaCloudOpenApiUtil.Client.query(query)
404+
])
405+
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
406+
"action": "DeleteAppLayout",
407+
"version": "2018-01-11",
408+
"protocol": "HTTPS",
409+
"pathname": "/",
410+
"method": "POST",
411+
"authType": "AK",
412+
"style": "RPC",
413+
"reqBodyType": "formData",
414+
"bodyType": "json"
415+
])
416+
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
417+
return Tea.TeaConverter.fromMap(DeleteAppLayoutResponse(), tmp)
418+
}
419+
420+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
421+
public func deleteAppLayout(_ request: DeleteAppLayoutRequest) async throws -> DeleteAppLayoutResponse {
422+
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
423+
return try await deleteAppLayoutWithOptions(request as! DeleteAppLayoutRequest, runtime as! TeaUtils.RuntimeOptions)
424+
}
425+
342426
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
343427
public func deleteAppRecordTemplateWithOptions(_ tmpReq: DeleteAppRecordTemplateRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteAppRecordTemplateResponse {
344428
try TeaUtils.Client.validateModel(tmpReq)
@@ -2902,6 +2986,48 @@ open class Client : AlibabacloudOpenApi.Client {
29022986
return try await modifyAppCallbackStatusWithOptions(request as! ModifyAppCallbackStatusRequest, runtime as! TeaUtils.RuntimeOptions)
29032987
}
29042988

2989+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
2990+
public func modifyAppLayoutWithOptions(_ tmpReq: ModifyAppLayoutRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ModifyAppLayoutResponse {
2991+
try TeaUtils.Client.validateModel(tmpReq)
2992+
var request: ModifyAppLayoutShrinkRequest = ModifyAppLayoutShrinkRequest([:])
2993+
AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request)
2994+
if (!TeaUtils.Client.isUnset(tmpReq.layout)) {
2995+
request.layoutShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.layout, "Layout", "json")
2996+
}
2997+
var query: [String: Any] = [:]
2998+
if (!TeaUtils.Client.isUnset(request.appId)) {
2999+
query["AppId"] = request.appId ?? "";
3000+
}
3001+
if (!TeaUtils.Client.isUnset(request.clientToken)) {
3002+
query["ClientToken"] = request.clientToken ?? "";
3003+
}
3004+
if (!TeaUtils.Client.isUnset(request.layoutShrink)) {
3005+
query["Layout"] = request.layoutShrink ?? "";
3006+
}
3007+
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
3008+
"query": AlibabaCloudOpenApiUtil.Client.query(query)
3009+
])
3010+
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
3011+
"action": "ModifyAppLayout",
3012+
"version": "2018-01-11",
3013+
"protocol": "HTTPS",
3014+
"pathname": "/",
3015+
"method": "POST",
3016+
"authType": "AK",
3017+
"style": "RPC",
3018+
"reqBodyType": "formData",
3019+
"bodyType": "json"
3020+
])
3021+
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
3022+
return Tea.TeaConverter.fromMap(ModifyAppLayoutResponse(), tmp)
3023+
}
3024+
3025+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
3026+
public func modifyAppLayout(_ request: ModifyAppLayoutRequest) async throws -> ModifyAppLayoutResponse {
3027+
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
3028+
return try await modifyAppLayoutWithOptions(request as! ModifyAppLayoutRequest, runtime as! TeaUtils.RuntimeOptions)
3029+
}
3030+
29053031
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
29063032
public func modifyAppLiveStreamStatusWithOptions(_ request: ModifyAppLiveStreamStatusRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ModifyAppLiveStreamStatusResponse {
29073033
try TeaUtils.Client.validateModel(request)
@@ -3262,6 +3388,9 @@ open class Client : AlibabacloudOpenApi.Client {
32623388
if (!TeaUtils.Client.isUnset(request.appId)) {
32633389
query["AppId"] = request.appId ?? "";
32643390
}
3391+
if (!TeaUtils.Client.isUnset(request.backgrounds)) {
3392+
query["Backgrounds"] = request.backgrounds ?? [];
3393+
}
32653394
if (!TeaUtils.Client.isUnset(request.channelId)) {
32663395
query["ChannelId"] = request.channelId ?? "";
32673396
}
@@ -3277,6 +3406,9 @@ open class Client : AlibabacloudOpenApi.Client {
32773406
if (!TeaUtils.Client.isUnset(request.panes)) {
32783407
query["Panes"] = request.panes ?? [];
32793408
}
3409+
if (!TeaUtils.Client.isUnset(request.regionColor)) {
3410+
query["RegionColor"] = request.regionColor!;
3411+
}
32803412
if (!TeaUtils.Client.isUnset(request.storageConfig)) {
32813413
query["StorageConfig"] = request.storageConfig!;
32823414
}
@@ -3530,6 +3662,9 @@ open class Client : AlibabacloudOpenApi.Client {
35303662
if (!TeaUtils.Client.isUnset(request.appId)) {
35313663
query["AppId"] = request.appId ?? "";
35323664
}
3665+
if (!TeaUtils.Client.isUnset(request.backgrounds)) {
3666+
query["Backgrounds"] = request.backgrounds ?? [];
3667+
}
35333668
if (!TeaUtils.Client.isUnset(request.channelId)) {
35343669
query["ChannelId"] = request.channelId ?? "";
35353670
}
@@ -3545,6 +3680,9 @@ open class Client : AlibabacloudOpenApi.Client {
35453680
if (!TeaUtils.Client.isUnset(request.panes)) {
35463681
query["Panes"] = request.panes ?? [];
35473682
}
3683+
if (!TeaUtils.Client.isUnset(request.regionColor)) {
3684+
query["RegionColor"] = request.regionColor!;
3685+
}
35483686
if (!TeaUtils.Client.isUnset(request.taskId)) {
35493687
query["TaskId"] = request.taskId ?? "";
35503688
}
@@ -3864,6 +4002,9 @@ open class Client : AlibabacloudOpenApi.Client {
38644002
if (!TeaUtils.Client.isUnset(request.appId)) {
38654003
query["AppId"] = request.appId ?? "";
38664004
}
4005+
if (!TeaUtils.Client.isUnset(request.backgrounds)) {
4006+
query["Backgrounds"] = request.backgrounds ?? [];
4007+
}
38674008
if (!TeaUtils.Client.isUnset(request.channelId)) {
38684009
query["ChannelId"] = request.channelId ?? "";
38694010
}
@@ -4174,6 +4315,9 @@ open class Client : AlibabacloudOpenApi.Client {
41744315
if (!TeaUtils.Client.isUnset(request.appId)) {
41754316
query["AppId"] = request.appId ?? "";
41764317
}
4318+
if (!TeaUtils.Client.isUnset(request.backgrounds)) {
4319+
query["Backgrounds"] = request.backgrounds ?? [];
4320+
}
41774321
if (!TeaUtils.Client.isUnset(request.channelId)) {
41784322
query["ChannelId"] = request.channelId ?? "";
41794323
}

0 commit comments

Comments
 (0)