Skip to content

Commit feb2a09

Browse files
committed
Support API ListProtectedResources.
1 parent 2e861c1 commit feb2a09

File tree

5 files changed

+351
-5
lines changed

5 files changed

+351
-5
lines changed

AlibabacloudHbr20170908.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 = "AlibabacloudHbr20170908"
4-
spec.version = "2.0.13"
4+
spec.version = "2.1.0"
55
spec.license = "Apache 2.0"
66
spec.summary = "Alibaba Cloud Hybrid Backup (20170908) SDK Library for Swift"
77
spec.homepage = "https://github.com/alibabacloud-sdk-swift/hbr-20170908"

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

1919
```ogdl
20-
github "alibabacloud-sdk-swift/hbr-20170908" "2.0.13"
20+
github "alibabacloud-sdk-swift/hbr-20170908" "2.1.0"
2121
```
2222

2323
### Swift 包管理工具
@@ -26,7 +26,7 @@ github "alibabacloud-sdk-swift/hbr-20170908" "2.0.13"
2626

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

1919
```ogdl
20-
github "alibabacloud-sdk-swift/hbr-20170908" "2.0.13"
20+
github "alibabacloud-sdk-swift/hbr-20170908" "2.1.0"
2121
```
2222

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

2727
```swift
2828
dependencies: [
29-
.package(url: "https://github.com/alibabacloud-sdk-swift/hbr-20170908.git", from: "2.0.13")
29+
.package(url: "https://github.com/alibabacloud-sdk-swift/hbr-20170908.git", from: "2.1.0")
3030
]
3131
```
3232

Sources/AlibabacloudHbr20170908/Client.swift

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3043,6 +3043,52 @@ open class Client : AlibabacloudOpenApi.Client {
30433043
return try await installBackupClientsWithOptions(request as! InstallBackupClientsRequest, runtime as! TeaUtils.RuntimeOptions)
30443044
}
30453045

3046+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
3047+
public func listProtectedResourcesWithOptions(_ request: ListProtectedResourcesRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ListProtectedResourcesResponse {
3048+
try TeaUtils.Client.validateModel(request)
3049+
var query: [String: Any] = [:]
3050+
if (!TeaUtils.Client.isUnset(request.createdByProduct)) {
3051+
query["CreatedByProduct"] = request.createdByProduct ?? "";
3052+
}
3053+
if (!TeaUtils.Client.isUnset(request.maxResults)) {
3054+
query["MaxResults"] = request.maxResults!;
3055+
}
3056+
if (!TeaUtils.Client.isUnset(request.nextToken)) {
3057+
query["NextToken"] = request.nextToken ?? "";
3058+
}
3059+
if (!TeaUtils.Client.isUnset(request.resourceId)) {
3060+
query["ResourceId"] = request.resourceId ?? "";
3061+
}
3062+
if (!TeaUtils.Client.isUnset(request.skip)) {
3063+
query["Skip"] = request.skip!;
3064+
}
3065+
if (!TeaUtils.Client.isUnset(request.sourceType)) {
3066+
query["SourceType"] = request.sourceType ?? "";
3067+
}
3068+
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
3069+
"query": AlibabaCloudOpenApiUtil.Client.query(query)
3070+
])
3071+
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
3072+
"action": "ListProtectedResources",
3073+
"version": "2017-09-08",
3074+
"protocol": "HTTPS",
3075+
"pathname": "/",
3076+
"method": "POST",
3077+
"authType": "AK",
3078+
"style": "RPC",
3079+
"reqBodyType": "formData",
3080+
"bodyType": "json"
3081+
])
3082+
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
3083+
return Tea.TeaConverter.fromMap(ListProtectedResourcesResponse(), tmp)
3084+
}
3085+
3086+
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
3087+
public func listProtectedResources(_ request: ListProtectedResourcesRequest) async throws -> ListProtectedResourcesResponse {
3088+
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
3089+
return try await listProtectedResourcesWithOptions(request as! ListProtectedResourcesRequest, runtime as! TeaUtils.RuntimeOptions)
3090+
}
3091+
30463092
@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
30473093
public func openHbrServiceWithOptions(_ runtime: TeaUtils.RuntimeOptions) async throws -> OpenHbrServiceResponse {
30483094
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([:])

0 commit comments

Comments
 (0)