Skip to content

Commit

Permalink
Support API DeleteSchemaProperty.
Browse files Browse the repository at this point in the history
  • Loading branch information
sdk-team committed May 13, 2024
1 parent 658e2fd commit 8f73e1f
Show file tree
Hide file tree
Showing 7 changed files with 1,183 additions and 84 deletions.
4 changes: 2 additions & 2 deletions AlibabacloudCCC20200701.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Pod::Spec.new do |spec|

spec.name = "AlibabacloudCCC20200701"
spec.version = "2.14.0"
spec.version = "2.15.0"
spec.license = "Apache 2.0"
spec.summary = "Alibaba Cloud cloud call center (20200701) SDK Library for Swift"
spec.homepage = "https://github.com/alibabacloud-sdk-swift/ccc-20200701"
Expand All @@ -18,7 +18,7 @@ Pod::Spec.new do |spec|
spec.tvos.deployment_target = '13.0'

spec.dependency 'Tea', '~> 1.0.0'
spec.dependency 'TeaUtils', '~> 1.0.3'
spec.dependency 'TeaUtils', '~> 1.0.5'
spec.dependency 'AlibabacloudOpenApi', '~> 1.0.3'
spec.dependency 'AlibabaCloudOpenApiUtil', '~> 1.0.1'
spec.dependency 'AlibabacloudEndpointUtil', '~> 1.0.0'
Expand Down
2 changes: 1 addition & 1 deletion Cartfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
github aliyun/tea-swift ~> 1.0.0
github alibabacloud-sdk-swift/tea-utils ~> 1.0.3
github alibabacloud-sdk-swift/tea-utils ~> 1.0.5
github alibabacloud-sdk-swift/darabonba-openapi ~> 1.0.3
github alibabacloud-sdk-swift/openapi-util ~> 1.0.1
github alibabacloud-sdk-swift/endpoint-util ~> 1.0.0
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ let package = Package(
dependencies: [
// Dependencies declare other packages that this package depends on.
.package(url: "https://github.com/aliyun/tea-swift.git", from: "1.0.0"),
.package(url: "https://github.com/alibabacloud-sdk-swift/tea-utils", from: "1.0.3"),
.package(url: "https://github.com/alibabacloud-sdk-swift/tea-utils", from: "1.0.5"),
.package(url: "https://github.com/alibabacloud-sdk-swift/darabonba-openapi", from: "1.0.3"),
.package(url: "https://github.com/alibabacloud-sdk-swift/openapi-util", from: "1.0.1"),
.package(url: "https://github.com/alibabacloud-sdk-swift/endpoint-util", from: "1.0.0"),
Expand Down
4 changes: 2 additions & 2 deletions README-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
要使用 [Carthage](https://github.com/Carthage/Carthage)`AlibabacloudCCC20200701` 集成到你的 Xcode 项目中,需要在 `Cartfile` 中定义以下内容:

```ogdl
github "alibabacloud-sdk-swift/ccc-20200701" "2.14.0"
github "alibabacloud-sdk-swift/ccc-20200701" "2.15.0"
```

### Swift 包管理工具
Expand All @@ -26,7 +26,7 @@ github "alibabacloud-sdk-swift/ccc-20200701" "2.14.0"

```swift
dependencies: [
.package(url: "https://github.com/alibabacloud-sdk-swift/ccc-20200701.git", from: "2.14.0")
.package(url: "https://github.com/alibabacloud-sdk-swift/ccc-20200701.git", from: "2.15.0")
]
```

Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ English | [简体中文](README-CN.md)
To integrate `AlibabacloudCCC20200701` into your Xcode project using [Carthage](https://github.com/Carthage/Carthage), specify it in your `Cartfile`:

```ogdl
github "alibabacloud-sdk-swift/ccc-20200701" "2.14.0"
github "alibabacloud-sdk-swift/ccc-20200701" "2.15.0"
```

### Swift Package Manager
Expand All @@ -26,7 +26,7 @@ To integrate `AlibabacloudCCC20200701` into your Xcode project using [Swift Pack

```swift
dependencies: [
.package(url: "https://github.com/alibabacloud-sdk-swift/ccc-20200701.git", from: "2.14.0")
.package(url: "https://github.com/alibabacloud-sdk-swift/ccc-20200701.git", from: "2.15.0")
]
```

Expand Down
157 changes: 157 additions & 0 deletions Sources/AlibabacloudCCC20200701/Client.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1508,6 +1508,46 @@ open class Client : AlibabacloudOpenApi.Client {
return try await deleteCustomCallTaggingWithOptions(request as! DeleteCustomCallTaggingRequest, runtime as! TeaUtils.RuntimeOptions)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func deleteSchemaPropertyWithOptions(_ request: DeleteSchemaPropertyRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteSchemaPropertyResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.propertyName)) {
body["PropertyName"] = request.propertyName ?? "";
}
if (!TeaUtils.Client.isUnset(request.requestId)) {
body["RequestId"] = request.requestId ?? "";
}
if (!TeaUtils.Client.isUnset(request.schemaId)) {
body["SchemaId"] = request.schemaId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "DeleteSchemaProperty",
"version": "2020-07-01",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(DeleteSchemaPropertyResponse(), tmp)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func deleteSchemaProperty(_ request: DeleteSchemaPropertyRequest) async throws -> DeleteSchemaPropertyResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await deleteSchemaPropertyWithOptions(request as! DeleteSchemaPropertyRequest, runtime as! TeaUtils.RuntimeOptions)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func deleteSkillGroupWithOptions(_ request: DeleteSkillGroupRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteSkillGroupResponse {
try TeaUtils.Client.validateModel(request)
Expand Down Expand Up @@ -1545,6 +1585,46 @@ open class Client : AlibabacloudOpenApi.Client {
return try await deleteSkillGroupWithOptions(request as! DeleteSkillGroupRequest, runtime as! TeaUtils.RuntimeOptions)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func disableSchemaPropertyWithOptions(_ request: DisableSchemaPropertyRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DisableSchemaPropertyResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.propertyName)) {
body["PropertyName"] = request.propertyName ?? "";
}
if (!TeaUtils.Client.isUnset(request.requestId)) {
body["RequestId"] = request.requestId ?? "";
}
if (!TeaUtils.Client.isUnset(request.schemaId)) {
body["SchemaId"] = request.schemaId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "DisableSchemaProperty",
"version": "2020-07-01",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(DisableSchemaPropertyResponse(), tmp)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func disableSchemaProperty(_ request: DisableSchemaPropertyRequest) async throws -> DisableSchemaPropertyResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await disableSchemaPropertyWithOptions(request as! DisableSchemaPropertyRequest, runtime as! TeaUtils.RuntimeOptions)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func discardEditingContactFlowWithOptions(_ request: DiscardEditingContactFlowRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DiscardEditingContactFlowResponse {
try TeaUtils.Client.validateModel(request)
Expand Down Expand Up @@ -1582,6 +1662,46 @@ open class Client : AlibabacloudOpenApi.Client {
return try await discardEditingContactFlowWithOptions(request as! DiscardEditingContactFlowRequest, runtime as! TeaUtils.RuntimeOptions)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func enableSchemaPropertyWithOptions(_ request: EnableSchemaPropertyRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> EnableSchemaPropertyResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.propertyName)) {
body["PropertyName"] = request.propertyName ?? "";
}
if (!TeaUtils.Client.isUnset(request.requestId)) {
body["RequestId"] = request.requestId ?? "";
}
if (!TeaUtils.Client.isUnset(request.schemaId)) {
body["SchemaId"] = request.schemaId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "EnableSchemaProperty",
"version": "2020-07-01",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(EnableSchemaPropertyResponse(), tmp)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func enableSchemaProperty(_ request: EnableSchemaPropertyRequest) async throws -> EnableSchemaPropertyResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await enableSchemaPropertyWithOptions(request as! EnableSchemaPropertyRequest, runtime as! TeaUtils.RuntimeOptions)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func endConferenceWithOptions(_ request: EndConferenceRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> EndConferenceResponse {
try TeaUtils.Client.validateModel(request)
Expand Down Expand Up @@ -2475,6 +2595,43 @@ open class Client : AlibabacloudOpenApi.Client {
return try await getRealtimeInstanceStatesWithOptions(request as! GetRealtimeInstanceStatesRequest, runtime as! TeaUtils.RuntimeOptions)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getSchemaWithOptions(_ request: GetSchemaRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetSchemaResponse {
try TeaUtils.Client.validateModel(request)
var body: [String: Any] = [:]
if (!TeaUtils.Client.isUnset(request.instanceId)) {
body["InstanceId"] = request.instanceId ?? "";
}
if (!TeaUtils.Client.isUnset(request.requestId)) {
body["RequestId"] = request.requestId ?? "";
}
if (!TeaUtils.Client.isUnset(request.schemaId)) {
body["SchemaId"] = request.schemaId ?? "";
}
var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([
"body": AlibabaCloudOpenApiUtil.Client.parseToMap(body)
])
var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([
"action": "GetSchema",
"version": "2020-07-01",
"protocol": "HTTPS",
"pathname": "/",
"method": "POST",
"authType": "AK",
"style": "RPC",
"reqBodyType": "formData",
"bodyType": "json"
])
var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions)
return Tea.TeaConverter.fromMap(GetSchemaResponse(), tmp)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getSchema(_ request: GetSchemaRequest) async throws -> GetSchemaResponse {
var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:])
return try await getSchemaWithOptions(request as! GetSchemaRequest, runtime as! TeaUtils.RuntimeOptions)
}

@available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *)
public func getSkillGroupWithOptions(_ request: GetSkillGroupRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetSkillGroupResponse {
try TeaUtils.Client.validateModel(request)
Expand Down
Loading

0 comments on commit 8f73e1f

Please sign in to comment.