Skip to content

Commit da39bc3

Browse files
committed
Support API ChangeCloudPhoneNode.
1 parent c096374 commit da39bc3

File tree

5 files changed

+458
-5
lines changed

5 files changed

+458
-5
lines changed

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

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

1919
```ogdl
20-
github "alibabacloud-sdk-swift/eds-aic-20230930" "3.2.2"
20+
github "alibabacloud-sdk-swift/eds-aic-20230930" "3.3.0"
2121
```
2222

2323
### Swift 包管理工具
@@ -26,7 +26,7 @@ github "alibabacloud-sdk-swift/eds-aic-20230930" "3.2.2"
2626

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

1919
```ogdl
20-
github "alibabacloud-sdk-swift/eds-aic-20230930" "3.2.2"
20+
github "alibabacloud-sdk-swift/eds-aic-20230930" "3.3.0"
2121
```
2222

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

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

Sources/AlibabacloudEdsAic20230930/Client.swift

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,49 @@ open class Client : AlibabacloudOpenApi.Client {
214214
return try await batchGetAcpConnectionTicketWithOptions(request as! BatchGetAcpConnectionTicketRequest, runtime as! TeaUtils.RuntimeOptions)
215215
}
216216

217+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
218+
public func changeCloudPhoneNodeWithOptions(_ request: ChangeCloudPhoneNodeRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ChangeCloudPhoneNodeResponse {
219+
try TeaUtils.Client.validateModel(request)
220+
var query: [String: Any] = [:]
221+
if (!TeaUtils.Client.isUnset(request.instanceType)) {
222+
query["InstanceType"] = request.instanceType ?? "";
223+
}
224+
if (!TeaUtils.Client.isUnset(request.nodeId)) {
225+
query["NodeId"] = request.nodeId ?? "";
226+
}
227+
if (!TeaUtils.Client.isUnset(request.phoneCount)) {
228+
query["PhoneCount"] = request.phoneCount!;
229+
}
230+
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
231+
"query": AlibabaCloudOpenApiUtil.Client.query(query)
232+
])
233+
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
234+
"action": "ChangeCloudPhoneNode",
235+
"version": "2023-09-30",
236+
"protocol": "HTTPS",
237+
"pathname": "/",
238+
"method": "POST",
239+
"authType": "AK",
240+
"style": "RPC",
241+
"reqBodyType": "formData",
242+
"bodyType": "json"
243+
])
244+
if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) {
245+
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
246+
return Tea.TeaConverter.fromMap(ChangeCloudPhoneNodeResponse(), tmp)
247+
}
248+
else {
249+
var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
250+
return Tea.TeaConverter.fromMap(ChangeCloudPhoneNodeResponse(), tmp)
251+
}
252+
}
253+
254+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
255+
public func changeCloudPhoneNode(_ request: ChangeCloudPhoneNodeRequest) async throws -> ChangeCloudPhoneNodeResponse {
256+
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
257+
return try await changeCloudPhoneNodeWithOptions(request as! ChangeCloudPhoneNodeRequest, runtime as! TeaUtils.RuntimeOptions)
258+
}
259+
217260
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
218261
public func checkResourceStockWithOptions(_ request: CheckResourceStockRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CheckResourceStockResponse {
219262
try TeaUtils.Client.validateModel(request)
@@ -1795,6 +1838,52 @@ open class Client : AlibabacloudOpenApi.Client {
17951838
return try await endCoordinationWithOptions(request as! EndCoordinationRequest, runtime as! TeaUtils.RuntimeOptions)
17961839
}
17971840

1841+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
1842+
public func expandDataVolumeWithOptions(_ request: ExpandDataVolumeRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ExpandDataVolumeResponse {
1843+
try TeaUtils.Client.validateModel(request)
1844+
var query: [String: Any] = [:]
1845+
if (!TeaUtils.Client.isUnset(request.autoPay)) {
1846+
query["AutoPay"] = request.autoPay!;
1847+
}
1848+
if (!TeaUtils.Client.isUnset(request.bizRegionId)) {
1849+
query["BizRegionId"] = request.bizRegionId ?? "";
1850+
}
1851+
if (!TeaUtils.Client.isUnset(request.nodeIds)) {
1852+
query["NodeIds"] = request.nodeIds ?? [];
1853+
}
1854+
if (!TeaUtils.Client.isUnset(request.shareDataVolume)) {
1855+
query["ShareDataVolume"] = request.shareDataVolume!;
1856+
}
1857+
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
1858+
"query": AlibabaCloudOpenApiUtil.Client.query(query)
1859+
])
1860+
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
1861+
"action": "ExpandDataVolume",
1862+
"version": "2023-09-30",
1863+
"protocol": "HTTPS",
1864+
"pathname": "/",
1865+
"method": "POST",
1866+
"authType": "AK",
1867+
"style": "RPC",
1868+
"reqBodyType": "formData",
1869+
"bodyType": "json"
1870+
])
1871+
if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) {
1872+
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
1873+
return Tea.TeaConverter.fromMap(ExpandDataVolumeResponse(), tmp)
1874+
}
1875+
else {
1876+
var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
1877+
return Tea.TeaConverter.fromMap(ExpandDataVolumeResponse(), tmp)
1878+
}
1879+
}
1880+
1881+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
1882+
public func expandDataVolume(_ request: ExpandDataVolumeRequest) async throws -> ExpandDataVolumeResponse {
1883+
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
1884+
return try await expandDataVolumeWithOptions(request as! ExpandDataVolumeRequest, runtime as! TeaUtils.RuntimeOptions)
1885+
}
1886+
17981887
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
17991888
public func fetchFileWithOptions(_ request: FetchFileRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> FetchFileResponse {
18001889
try TeaUtils.Client.validateModel(request)

0 commit comments

Comments
 (0)