Skip to content

Commit 354a88e

Browse files
committed
Support API CreateLink.
1 parent 0f6f1c4 commit 354a88e

File tree

7 files changed

+512
-11
lines changed

7 files changed

+512
-11
lines changed

AlibabacloudMPaaS20201028.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 = "AlibabacloudMPaaS20201028"
4-
spec.version = "1.4.0"
4+
spec.version = "1.5.0"
55
spec.license = "Apache 2.0"
66
spec.summary = "Alibaba Cloud Mobile PaaS (20201028) SDK Library for Swift"
77
spec.homepage = "https://github.com/alibabacloud-sdk-swift/mpaas-20201028"
@@ -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.3'
22-
spec.dependency 'AlibabacloudOpenApi', '~> 1.0.3'
21+
spec.dependency 'TeaUtils', '~> 1.0.5'
22+
spec.dependency 'AlibabacloudOpenApi', '~> 1.0.4'
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.3
3-
github alibabacloud-sdk-swift/darabonba-openapi ~> 1.0.3
2+
github alibabacloud-sdk-swift/tea-utils ~> 1.0.5
3+
github alibabacloud-sdk-swift/darabonba-openapi ~> 1.0.4
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.3"),
20-
.package(url: "https://github.com/alibabacloud-sdk-swift/darabonba-openapi", from: "1.0.3"),
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.4"),
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)`AlibabacloudMPaaS20201028` 集成到你的 Xcode 项目中,需要在 `Cartfile` 中定义以下内容:
1818

1919
```ogdl
20-
github "alibabacloud-sdk-swift/mpaas-20201028" "1.4.0"
20+
github "alibabacloud-sdk-swift/mpaas-20201028" "1.5.0"
2121
```
2222

2323
### Swift 包管理工具
@@ -26,7 +26,7 @@ github "alibabacloud-sdk-swift/mpaas-20201028" "1.4.0"
2626

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

1919
```ogdl
20-
github "alibabacloud-sdk-swift/mpaas-20201028" "1.4.0"
20+
github "alibabacloud-sdk-swift/mpaas-20201028" "1.5.0"
2121
```
2222

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

2727
```swift
2828
dependencies: [
29-
.package(url: "https://github.com/alibabacloud-sdk-swift/mpaas-20201028.git", from: "1.4.0")
29+
.package(url: "https://github.com/alibabacloud-sdk-swift/mpaas-20201028.git", from: "1.5.0")
3030
]
3131
```
3232

Sources/AlibabacloudMPaaS20201028/Client.swift

Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,52 @@ open class Client : AlibabacloudOpenApi.Client {
340340
return try await copyMcdpGroupWithOptions(request as! CopyMcdpGroupRequest, runtime as! TeaUtils.RuntimeOptions)
341341
}
342342

343+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
344+
public func createLinkWithOptions(_ request: CreateLinkRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateLinkResponse {
345+
try TeaUtils.Client.validateModel(request)
346+
var body: [String: Any] = [:]
347+
if (!TeaUtils.Client.isUnset(request.appId)) {
348+
body["AppId"] = request.appId ?? "";
349+
}
350+
if (!TeaUtils.Client.isUnset(request.cors)) {
351+
body["Cors"] = request.cors ?? "";
352+
}
353+
if (!TeaUtils.Client.isUnset(request.domain)) {
354+
body["Domain"] = request.domain ?? "";
355+
}
356+
if (!TeaUtils.Client.isUnset(request.dynamicfield)) {
357+
body["Dynamicfield"] = request.dynamicfield ?? "";
358+
}
359+
if (!TeaUtils.Client.isUnset(request.targetUrl)) {
360+
body["TargetUrl"] = request.targetUrl ?? "";
361+
}
362+
if (!TeaUtils.Client.isUnset(request.workspaceId)) {
363+
body["WorkspaceId"] = request.workspaceId ?? "";
364+
}
365+
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
366+
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
367+
])
368+
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
369+
"action": "CreateLink",
370+
"version": "2020-10-28",
371+
"protocol": "HTTPS",
372+
"pathname": "/",
373+
"method": "POST",
374+
"authType": "AK",
375+
"style": "RPC",
376+
"reqBodyType": "formData",
377+
"bodyType": "json"
378+
])
379+
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
380+
return Tea.TeaConverter.fromMap(CreateLinkResponse(), tmp)
381+
}
382+
383+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
384+
public func createLink(_ request: CreateLinkRequest) async throws -> CreateLinkResponse {
385+
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
386+
return try await createLinkWithOptions(request as! CreateLinkRequest, runtime as! TeaUtils.RuntimeOptions)
387+
}
388+
343389
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
344390
public func createMasCrowdWithOptions(_ request: CreateMasCrowdRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateMasCrowdResponse {
345391
try TeaUtils.Client.validateModel(request)
@@ -4266,6 +4312,43 @@ open class Client : AlibabacloudOpenApi.Client {
42664312
return try await queryInfoFromMdpWithOptions(request as! QueryInfoFromMdpRequest, runtime as! TeaUtils.RuntimeOptions)
42674313
}
42684314

4315+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
4316+
public func queryLinkWithOptions(_ request: QueryLinkRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> QueryLinkResponse {
4317+
try TeaUtils.Client.validateModel(request)
4318+
var body: [String: Any] = [:]
4319+
if (!TeaUtils.Client.isUnset(request.appId)) {
4320+
body["AppId"] = request.appId ?? "";
4321+
}
4322+
if (!TeaUtils.Client.isUnset(request.url)) {
4323+
body["Url"] = request.url ?? "";
4324+
}
4325+
if (!TeaUtils.Client.isUnset(request.workspaceId)) {
4326+
body["WorkspaceId"] = request.workspaceId ?? "";
4327+
}
4328+
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
4329+
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
4330+
])
4331+
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
4332+
"action": "QueryLink",
4333+
"version": "2020-10-28",
4334+
"protocol": "HTTPS",
4335+
"pathname": "/",
4336+
"method": "POST",
4337+
"authType": "AK",
4338+
"style": "RPC",
4339+
"reqBodyType": "formData",
4340+
"bodyType": "json"
4341+
])
4342+
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
4343+
return Tea.TeaConverter.fromMap(QueryLinkResponse(), tmp)
4344+
}
4345+
4346+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
4347+
public func queryLink(_ request: QueryLinkRequest) async throws -> QueryLinkResponse {
4348+
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
4349+
return try await queryLinkWithOptions(request as! QueryLinkRequest, runtime as! TeaUtils.RuntimeOptions)
4350+
}
4351+
42694352
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
42704353
public func queryMappCenterAppWithOptions(_ request: QueryMappCenterAppRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> QueryMappCenterAppResponse {
42714354
try TeaUtils.Client.validateModel(request)

0 commit comments

Comments
 (0)