tdsr-20200101/Sources/AlibabacloudTdsr20200101/Client.swift (2,626 lines of code) (raw):

import Foundation import Tea import TeaUtils import AlibabacloudOpenApi import AlibabaCloudOpenApiUtil import AlibabacloudEndpointUtil open class Client : AlibabacloudOpenApi.Client { public override init(_ config: AlibabacloudOpenApi.Config) throws { try super.init(config) self._endpointRule = "regional" self._endpointMap = [ "cn-hangzhou": "lyj.cn-hangzhou.aliyuncs.com" ] try checkConfig(config as! AlibabacloudOpenApi.Config) self._endpoint = try getEndpoint("tdsr", self._regionId ?? "", self._endpointRule ?? "", self._network ?? "", self._suffix ?? "", self._endpointMap ?? [:], self._endpoint ?? "") } public func getEndpoint(_ productId: String, _ regionId: String, _ endpointRule: String, _ network: String, _ suffix: String, _ endpointMap: [String: String], _ endpoint: String) throws -> String { if (!TeaUtils.Client.empty(endpoint)) { return endpoint as! String } if (!TeaUtils.Client.isUnset(endpointMap) && !TeaUtils.Client.empty(endpointMap[regionId as! String])) { return endpointMap[regionId as! String] ?? "" } return try AlibabacloudEndpointUtil.Client.getEndpointRules(productId, regionId, endpointRule, network, suffix) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func addHotspotFileWithOptions(_ request: AddHotspotFileRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> AddHotspotFileResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.fileName)) { query["FileName"] = request.fileName ?? ""; } if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } if (!TeaUtils.Client.isUnset(request.type)) { query["Type"] = request.type ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "AddHotspotFile", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(AddHotspotFileResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(AddHotspotFileResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func addHotspotFile(_ request: AddHotspotFileRequest) async throws -> AddHotspotFileResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await addHotspotFileWithOptions(request as! AddHotspotFileRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func addMosaicsWithOptions(_ request: AddMosaicsRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> AddMosaicsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.markPosition)) { query["MarkPosition"] = request.markPosition ?? ""; } if (!TeaUtils.Client.isUnset(request.subSceneId)) { query["SubSceneId"] = request.subSceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "AddMosaics", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(AddMosaicsResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(AddMosaicsResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func addMosaics(_ request: AddMosaicsRequest) async throws -> AddMosaicsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await addMosaicsWithOptions(request as! AddMosaicsRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func addProjectWithOptions(_ request: AddProjectRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> AddProjectResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.businessId)) { query["BusinessId"] = request.businessId!; } if (!TeaUtils.Client.isUnset(request.name)) { query["Name"] = request.name ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "AddProject", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(AddProjectResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(AddProjectResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func addProject(_ request: AddProjectRequest) async throws -> AddProjectResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await addProjectWithOptions(request as! AddProjectRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func addRelativePositionWithOptions(_ request: AddRelativePositionRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> AddRelativePositionResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.relativePosition)) { query["RelativePosition"] = request.relativePosition ?? ""; } if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "AddRelativePosition", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(AddRelativePositionResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(AddRelativePositionResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func addRelativePosition(_ request: AddRelativePositionRequest) async throws -> AddRelativePositionResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await addRelativePositionWithOptions(request as! AddRelativePositionRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func addRoomPlanWithOptions(_ request: AddRoomPlanRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> AddRoomPlanResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "AddRoomPlan", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(AddRoomPlanResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(AddRoomPlanResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func addRoomPlan(_ request: AddRoomPlanRequest) async throws -> AddRoomPlanResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await addRoomPlanWithOptions(request as! AddRoomPlanRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func addSceneWithOptions(_ request: AddSceneRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> AddSceneResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.customerUid)) { query["CustomerUid"] = request.customerUid ?? ""; } if (!TeaUtils.Client.isUnset(request.name)) { query["Name"] = request.name ?? ""; } if (!TeaUtils.Client.isUnset(request.projectId)) { query["ProjectId"] = request.projectId ?? ""; } if (!TeaUtils.Client.isUnset(request.type)) { query["Type"] = request.type ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "AddScene", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(AddSceneResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(AddSceneResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func addScene(_ request: AddSceneRequest) async throws -> AddSceneResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await addSceneWithOptions(request as! AddSceneRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func addSubSceneWithOptions(_ request: AddSubSceneRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> AddSubSceneResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.name)) { query["Name"] = request.name ?? ""; } if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } if (!TeaUtils.Client.isUnset(request.uploadType)) { query["UploadType"] = request.uploadType ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "AddSubScene", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(AddSubSceneResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(AddSubSceneResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func addSubScene(_ request: AddSubSceneRequest) async throws -> AddSubSceneResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await addSubSceneWithOptions(request as! AddSubSceneRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func checkUserPropertyWithOptions(_ request: CheckUserPropertyRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CheckUserPropertyResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.uid)) { query["Uid"] = request.uid ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "CheckUserProperty", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CheckUserPropertyResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CheckUserPropertyResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func checkUserProperty(_ request: CheckUserPropertyRequest) async throws -> CheckUserPropertyResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await checkUserPropertyWithOptions(request as! CheckUserPropertyRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func copySceneWithOptions(_ request: CopySceneRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CopySceneResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.projectId)) { query["ProjectId"] = request.projectId ?? ""; } if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } if (!TeaUtils.Client.isUnset(request.sceneName)) { query["SceneName"] = request.sceneName ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "CopyScene", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CopySceneResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CopySceneResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func copyScene(_ request: CopySceneRequest) async throws -> CopySceneResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await copySceneWithOptions(request as! CopySceneRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func createUploadPolicyWithOptions(_ request: CreateUploadPolicyRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateUploadPolicyResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.option)) { query["Option"] = request.option ?? ""; } if (!TeaUtils.Client.isUnset(request.type)) { query["Type"] = request.type ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "CreateUploadPolicy", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CreateUploadPolicyResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CreateUploadPolicyResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func createUploadPolicy(_ request: CreateUploadPolicyRequest) async throws -> CreateUploadPolicyResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await createUploadPolicyWithOptions(request as! CreateUploadPolicyRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func detailProjectWithOptions(_ request: DetailProjectRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DetailProjectResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.id)) { query["Id"] = request.id ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DetailProject", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DetailProjectResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DetailProjectResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func detailProject(_ request: DetailProjectRequest) async throws -> DetailProjectResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await detailProjectWithOptions(request as! DetailProjectRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func detailSceneWithOptions(_ request: DetailSceneRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DetailSceneResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.id)) { query["Id"] = request.id ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DetailScene", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DetailSceneResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DetailSceneResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func detailScene(_ request: DetailSceneRequest) async throws -> DetailSceneResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await detailSceneWithOptions(request as! DetailSceneRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func detailSubSceneWithOptions(_ request: DetailSubSceneRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DetailSubSceneResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.id)) { query["Id"] = request.id ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DetailSubScene", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DetailSubSceneResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DetailSubSceneResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func detailSubScene(_ request: DetailSubSceneRequest) async throws -> DetailSubSceneResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await detailSubSceneWithOptions(request as! DetailSubSceneRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func dropProjectWithOptions(_ request: DropProjectRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DropProjectResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.projectId)) { query["ProjectId"] = request.projectId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DropProject", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DropProjectResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DropProjectResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func dropProject(_ request: DropProjectRequest) async throws -> DropProjectResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await dropProjectWithOptions(request as! DropProjectRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func dropSceneWithOptions(_ request: DropSceneRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DropSceneResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.id)) { query["Id"] = request.id ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DropScene", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DropSceneResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DropSceneResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func dropScene(_ request: DropSceneRequest) async throws -> DropSceneResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await dropSceneWithOptions(request as! DropSceneRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func dropSubSceneWithOptions(_ request: DropSubSceneRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> DropSubSceneResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.id)) { query["Id"] = request.id ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DropSubScene", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DropSubSceneResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DropSubSceneResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func dropSubScene(_ request: DropSubSceneRequest) async throws -> DropSubSceneResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await dropSubSceneWithOptions(request as! DropSubSceneRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getConnDataWithOptions(_ request: GetConnDataRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetConnDataResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetConnData", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetConnDataResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetConnDataResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getConnData(_ request: GetConnDataRequest) async throws -> GetConnDataResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await getConnDataWithOptions(request as! GetConnDataRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getCopySceneTaskStatusWithOptions(_ request: GetCopySceneTaskStatusRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetCopySceneTaskStatusResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.taskId)) { query["TaskId"] = request.taskId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetCopySceneTaskStatus", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetCopySceneTaskStatusResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetCopySceneTaskStatusResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getCopySceneTaskStatus(_ request: GetCopySceneTaskStatusRequest) async throws -> GetCopySceneTaskStatusResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await getCopySceneTaskStatusWithOptions(request as! GetCopySceneTaskStatusRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getHotspotConfigWithOptions(_ request: GetHotspotConfigRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetHotspotConfigResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.domain)) { query["Domain"] = request.domain ?? ""; } if (!TeaUtils.Client.isUnset(request.enabled)) { query["Enabled"] = request.enabled!; } if (!TeaUtils.Client.isUnset(request.previewToken)) { query["PreviewToken"] = request.previewToken ?? ""; } if (!TeaUtils.Client.isUnset(request.type)) { query["Type"] = request.type!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetHotspotConfig", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetHotspotConfigResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetHotspotConfigResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getHotspotConfig(_ request: GetHotspotConfigRequest) async throws -> GetHotspotConfigResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await getHotspotConfigWithOptions(request as! GetHotspotConfigRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getHotspotSceneDataWithOptions(_ request: GetHotspotSceneDataRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetHotspotSceneDataResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.domain)) { query["Domain"] = request.domain ?? ""; } if (!TeaUtils.Client.isUnset(request.enabled)) { query["Enabled"] = request.enabled!; } if (!TeaUtils.Client.isUnset(request.previewToken)) { query["PreviewToken"] = request.previewToken ?? ""; } if (!TeaUtils.Client.isUnset(request.type)) { query["Type"] = request.type!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetHotspotSceneData", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetHotspotSceneDataResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetHotspotSceneDataResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getHotspotSceneData(_ request: GetHotspotSceneDataRequest) async throws -> GetHotspotSceneDataResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await getHotspotSceneDataWithOptions(request as! GetHotspotSceneDataRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getHotspotTagWithOptions(_ request: GetHotspotTagRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetHotspotTagResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.domain)) { query["Domain"] = request.domain ?? ""; } if (!TeaUtils.Client.isUnset(request.enabled)) { query["Enabled"] = request.enabled!; } if (!TeaUtils.Client.isUnset(request.previewToken)) { query["PreviewToken"] = request.previewToken ?? ""; } if (!TeaUtils.Client.isUnset(request.subSceneUuid)) { query["SubSceneUuid"] = request.subSceneUuid ?? ""; } if (!TeaUtils.Client.isUnset(request.type)) { query["Type"] = request.type ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetHotspotTag", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetHotspotTagResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetHotspotTagResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getHotspotTag(_ request: GetHotspotTagRequest) async throws -> GetHotspotTagResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await getHotspotTagWithOptions(request as! GetHotspotTagRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getLayoutDataWithOptions(_ request: GetLayoutDataRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetLayoutDataResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.subSceneId)) { query["SubSceneId"] = request.subSceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetLayoutData", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetLayoutDataResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetLayoutDataResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getLayoutData(_ request: GetLayoutDataRequest) async throws -> GetLayoutDataResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await getLayoutDataWithOptions(request as! GetLayoutDataRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getOriginLayoutDataWithOptions(_ request: GetOriginLayoutDataRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetOriginLayoutDataResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.subSceneId)) { query["SubSceneId"] = request.subSceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetOriginLayoutData", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetOriginLayoutDataResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetOriginLayoutDataResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getOriginLayoutData(_ request: GetOriginLayoutDataRequest) async throws -> GetOriginLayoutDataResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await getOriginLayoutDataWithOptions(request as! GetOriginLayoutDataRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getOssPolicyWithOptions(_ request: GetOssPolicyRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetOssPolicyResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.subSceneId)) { query["SubSceneId"] = request.subSceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetOssPolicy", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetOssPolicyResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetOssPolicyResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getOssPolicy(_ request: GetOssPolicyRequest) async throws -> GetOssPolicyResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await getOssPolicyWithOptions(request as! GetOssPolicyRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getPackSceneTaskStatusWithOptions(_ request: GetPackSceneTaskStatusRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetPackSceneTaskStatusResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.taskId)) { query["TaskId"] = request.taskId ?? ""; } if (!TeaUtils.Client.isUnset(request.type)) { query["Type"] = request.type ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetPackSceneTaskStatus", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetPackSceneTaskStatusResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetPackSceneTaskStatusResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getPackSceneTaskStatus(_ request: GetPackSceneTaskStatusRequest) async throws -> GetPackSceneTaskStatusResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await getPackSceneTaskStatusWithOptions(request as! GetPackSceneTaskStatusRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getRectifyImageWithOptions(_ request: GetRectifyImageRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetRectifyImageResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.subSceneId)) { query["SubSceneId"] = request.subSceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetRectifyImage", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetRectifyImageResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetRectifyImageResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getRectifyImage(_ request: GetRectifyImageRequest) async throws -> GetRectifyImageResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await getRectifyImageWithOptions(request as! GetRectifyImageRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getSceneBuildTaskStatusWithOptions(_ request: GetSceneBuildTaskStatusRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetSceneBuildTaskStatusResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetSceneBuildTaskStatus", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetSceneBuildTaskStatusResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetSceneBuildTaskStatusResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getSceneBuildTaskStatus(_ request: GetSceneBuildTaskStatusRequest) async throws -> GetSceneBuildTaskStatusResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await getSceneBuildTaskStatusWithOptions(request as! GetSceneBuildTaskStatusRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getScenePackUrlWithOptions(_ request: GetScenePackUrlRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetScenePackUrlResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetScenePackUrl", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetScenePackUrlResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetScenePackUrlResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getScenePackUrl(_ request: GetScenePackUrlRequest) async throws -> GetScenePackUrlResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await getScenePackUrlWithOptions(request as! GetScenePackUrlRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getScenePreviewDataWithOptions(_ request: GetScenePreviewDataRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetScenePreviewDataResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.domain)) { query["Domain"] = request.domain ?? ""; } if (!TeaUtils.Client.isUnset(request.enabled)) { query["Enabled"] = request.enabled!; } if (!TeaUtils.Client.isUnset(request.previewToken)) { query["PreviewToken"] = request.previewToken ?? ""; } if (!TeaUtils.Client.isUnset(request.showTag)) { query["ShowTag"] = request.showTag!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetScenePreviewData", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetScenePreviewDataResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetScenePreviewDataResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getScenePreviewData(_ request: GetScenePreviewDataRequest) async throws -> GetScenePreviewDataResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await getScenePreviewDataWithOptions(request as! GetScenePreviewDataRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getScenePreviewInfoWithOptions(_ request: GetScenePreviewInfoRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetScenePreviewInfoResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.domain)) { query["Domain"] = request.domain ?? ""; } if (!TeaUtils.Client.isUnset(request.enabled)) { query["Enabled"] = request.enabled!; } if (!TeaUtils.Client.isUnset(request.modelToken)) { query["ModelToken"] = request.modelToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetScenePreviewInfo", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetScenePreviewInfoResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetScenePreviewInfoResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getScenePreviewInfo(_ request: GetScenePreviewInfoRequest) async throws -> GetScenePreviewInfoResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await getScenePreviewInfoWithOptions(request as! GetScenePreviewInfoRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getScenePreviewResourceWithOptions(_ request: GetScenePreviewResourceRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetScenePreviewResourceResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.draft)) { query["Draft"] = request.draft!; } if (!TeaUtils.Client.isUnset(request.previewToken)) { query["PreviewToken"] = request.previewToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetScenePreviewResource", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetScenePreviewResourceResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetScenePreviewResourceResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getScenePreviewResource(_ request: GetScenePreviewResourceRequest) async throws -> GetScenePreviewResourceResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await getScenePreviewResourceWithOptions(request as! GetScenePreviewResourceRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getSingleConnDataWithOptions(_ request: GetSingleConnDataRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetSingleConnDataResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.subSceneId)) { query["SubSceneId"] = request.subSceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetSingleConnData", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetSingleConnDataResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetSingleConnDataResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getSingleConnData(_ request: GetSingleConnDataRequest) async throws -> GetSingleConnDataResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await getSingleConnDataWithOptions(request as! GetSingleConnDataRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getSourcePackStatusWithOptions(_ request: GetSourcePackStatusRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetSourcePackStatusResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.taskId)) { query["TaskId"] = request.taskId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetSourcePackStatus", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetSourcePackStatusResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetSourcePackStatusResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getSourcePackStatus(_ request: GetSourcePackStatusRequest) async throws -> GetSourcePackStatusResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await getSourcePackStatusWithOptions(request as! GetSourcePackStatusRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getSubSceneTaskStatusWithOptions(_ request: GetSubSceneTaskStatusRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetSubSceneTaskStatusResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.subSceneId)) { query["SubSceneId"] = request.subSceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetSubSceneTaskStatus", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetSubSceneTaskStatusResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetSubSceneTaskStatusResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getSubSceneTaskStatus(_ request: GetSubSceneTaskStatusRequest) async throws -> GetSubSceneTaskStatusResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await getSubSceneTaskStatusWithOptions(request as! GetSubSceneTaskStatusRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getTaskStatusWithOptions(_ request: GetTaskStatusRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetTaskStatusResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.taskId)) { query["TaskId"] = request.taskId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetTaskStatus", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetTaskStatusResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetTaskStatusResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getTaskStatus(_ request: GetTaskStatusRequest) async throws -> GetTaskStatusResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await getTaskStatusWithOptions(request as! GetTaskStatusRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getWindowConfigWithOptions(_ request: GetWindowConfigRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> GetWindowConfigResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.previewToken)) { query["PreviewToken"] = request.previewToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetWindowConfig", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetWindowConfigResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetWindowConfigResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getWindowConfig(_ request: GetWindowConfigRequest) async throws -> GetWindowConfigResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await getWindowConfigWithOptions(request as! GetWindowConfigRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func labelBuildWithOptions(_ request: LabelBuildRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> LabelBuildResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.mode)) { query["Mode"] = request.mode ?? ""; } if (!TeaUtils.Client.isUnset(request.modelStyle)) { query["ModelStyle"] = request.modelStyle ?? ""; } if (!TeaUtils.Client.isUnset(request.optimizeWallWidth)) { query["OptimizeWallWidth"] = request.optimizeWallWidth ?? ""; } if (!TeaUtils.Client.isUnset(request.planStyle)) { query["PlanStyle"] = request.planStyle ?? ""; } if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } if (!TeaUtils.Client.isUnset(request.wallHeight)) { query["WallHeight"] = request.wallHeight!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "LabelBuild", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(LabelBuildResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(LabelBuildResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func labelBuild(_ request: LabelBuildRequest) async throws -> LabelBuildResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await labelBuildWithOptions(request as! LabelBuildRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func linkImageWithOptions(_ request: LinkImageRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> LinkImageResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.cameraHeight)) { query["CameraHeight"] = request.cameraHeight!; } if (!TeaUtils.Client.isUnset(request.fileName)) { query["FileName"] = request.fileName ?? ""; } if (!TeaUtils.Client.isUnset(request.platform)) { query["Platform"] = request.platform ?? ""; } if (!TeaUtils.Client.isUnset(request.subSceneId)) { query["SubSceneId"] = request.subSceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "LinkImage", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(LinkImageResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(LinkImageResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func linkImage(_ request: LinkImageRequest) async throws -> LinkImageResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await linkImageWithOptions(request as! LinkImageRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listProjectWithOptions(_ request: ListProjectRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ListProjectResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.name)) { query["Name"] = request.name ?? ""; } if (!TeaUtils.Client.isUnset(request.pageNum)) { query["PageNum"] = request.pageNum!; } if (!TeaUtils.Client.isUnset(request.pageSize)) { query["PageSize"] = request.pageSize!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListProject", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListProjectResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListProjectResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listProject(_ request: ListProjectRequest) async throws -> ListProjectResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await listProjectWithOptions(request as! ListProjectRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listSceneWithOptions(_ request: ListSceneRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ListSceneResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.name)) { query["Name"] = request.name ?? ""; } if (!TeaUtils.Client.isUnset(request.pageNum)) { query["PageNum"] = request.pageNum!; } if (!TeaUtils.Client.isUnset(request.pageSize)) { query["PageSize"] = request.pageSize!; } if (!TeaUtils.Client.isUnset(request.projectId)) { query["ProjectId"] = request.projectId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListScene", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListSceneResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListSceneResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listScene(_ request: ListSceneRequest) async throws -> ListSceneResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await listSceneWithOptions(request as! ListSceneRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listSubSceneWithOptions(_ request: ListSubSceneRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ListSubSceneResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.pageNum)) { query["PageNum"] = request.pageNum!; } if (!TeaUtils.Client.isUnset(request.pageSize)) { query["PageSize"] = request.pageSize!; } if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } if (!TeaUtils.Client.isUnset(request.showLayoutData)) { query["ShowLayoutData"] = request.showLayoutData!; } if (!TeaUtils.Client.isUnset(request.sortField)) { query["SortField"] = request.sortField ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListSubScene", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListSubSceneResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListSubSceneResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listSubScene(_ request: ListSubSceneRequest) async throws -> ListSubSceneResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await listSubSceneWithOptions(request as! ListSubSceneRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func optimizeRightAngleWithOptions(_ request: OptimizeRightAngleRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> OptimizeRightAngleResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.subSceneId)) { query["SubSceneId"] = request.subSceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "OptimizeRightAngle", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(OptimizeRightAngleResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(OptimizeRightAngleResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func optimizeRightAngle(_ request: OptimizeRightAngleRequest) async throws -> OptimizeRightAngleResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await optimizeRightAngleWithOptions(request as! OptimizeRightAngleRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func packSceneWithOptions(_ request: PackSceneRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> PackSceneResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } if (!TeaUtils.Client.isUnset(request.type)) { query["Type"] = request.type ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "PackScene", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(PackSceneResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(PackSceneResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func packScene(_ request: PackSceneRequest) async throws -> PackSceneResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await packSceneWithOptions(request as! PackSceneRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func packSourceWithOptions(_ request: PackSourceRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> PackSourceResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "PackSource", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(PackSourceResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(PackSourceResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func packSource(_ request: PackSourceRequest) async throws -> PackSourceResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await packSourceWithOptions(request as! PackSourceRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func predImageWithOptions(_ request: PredImageRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> PredImageResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.correctVertical)) { query["CorrectVertical"] = request.correctVertical!; } if (!TeaUtils.Client.isUnset(request.countDetectDoor)) { query["CountDetectDoor"] = request.countDetectDoor!; } if (!TeaUtils.Client.isUnset(request.detectDoor)) { query["DetectDoor"] = request.detectDoor!; } if (!TeaUtils.Client.isUnset(request.subSceneId)) { query["SubSceneId"] = request.subSceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "PredImage", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(PredImageResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(PredImageResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func predImage(_ request: PredImageRequest) async throws -> PredImageResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await predImageWithOptions(request as! PredImageRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func predictionWallLineWithOptions(_ request: PredictionWallLineRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> PredictionWallLineResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.cameraHeight)) { query["CameraHeight"] = request.cameraHeight!; } if (!TeaUtils.Client.isUnset(request.url)) { query["Url"] = request.url ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "PredictionWallLine", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(PredictionWallLineResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(PredictionWallLineResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func predictionWallLine(_ request: PredictionWallLineRequest) async throws -> PredictionWallLineResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await predictionWallLineWithOptions(request as! PredictionWallLineRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func publishHotspotWithOptions(_ request: PublishHotspotRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> PublishHotspotResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.paramTag)) { query["ParamTag"] = request.paramTag ?? ""; } if (!TeaUtils.Client.isUnset(request.subSceneUuid)) { query["SubSceneUuid"] = request.subSceneUuid ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "PublishHotspot", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(PublishHotspotResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(PublishHotspotResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func publishHotspot(_ request: PublishHotspotRequest) async throws -> PublishHotspotResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await publishHotspotWithOptions(request as! PublishHotspotRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func publishHotspotConfigWithOptions(_ request: PublishHotspotConfigRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> PublishHotspotConfigResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "PublishHotspotConfig", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(PublishHotspotConfigResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(PublishHotspotConfigResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func publishHotspotConfig(_ request: PublishHotspotConfigRequest) async throws -> PublishHotspotConfigResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await publishHotspotConfigWithOptions(request as! PublishHotspotConfigRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func publishSceneWithOptions(_ request: PublishSceneRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> PublishSceneResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "PublishScene", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(PublishSceneResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(PublishSceneResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func publishScene(_ request: PublishSceneRequest) async throws -> PublishSceneResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await publishSceneWithOptions(request as! PublishSceneRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func publishStatusWithOptions(_ request: PublishStatusRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> PublishStatusResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "PublishStatus", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(PublishStatusResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(PublishStatusResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func publishStatus(_ request: PublishStatusRequest) async throws -> PublishStatusResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await publishStatusWithOptions(request as! PublishStatusRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func recoveryOriginImageWithOptions(_ request: RecoveryOriginImageRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> RecoveryOriginImageResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.subSceneId)) { query["SubSceneId"] = request.subSceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "RecoveryOriginImage", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(RecoveryOriginImageResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(RecoveryOriginImageResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func recoveryOriginImage(_ request: RecoveryOriginImageRequest) async throws -> RecoveryOriginImageResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await recoveryOriginImageWithOptions(request as! RecoveryOriginImageRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func rectVerticalWithOptions(_ request: RectVerticalRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> RectVerticalResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.countDetectDoor)) { query["CountDetectDoor"] = request.countDetectDoor!; } if (!TeaUtils.Client.isUnset(request.detectDoor)) { query["DetectDoor"] = request.detectDoor!; } if (!TeaUtils.Client.isUnset(request.subSceneId)) { query["SubSceneId"] = request.subSceneId ?? ""; } if (!TeaUtils.Client.isUnset(request.verticalRect)) { query["VerticalRect"] = request.verticalRect ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "RectVertical", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(RectVerticalResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(RectVerticalResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func rectVertical(_ request: RectVerticalRequest) async throws -> RectVerticalResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await rectVerticalWithOptions(request as! RectVerticalRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func rectifyImageWithOptions(_ request: RectifyImageRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> RectifyImageResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.cameraHeight)) { query["CameraHeight"] = request.cameraHeight!; } if (!TeaUtils.Client.isUnset(request.url)) { query["Url"] = request.url ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "RectifyImage", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(RectifyImageResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(RectifyImageResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func rectifyImage(_ request: RectifyImageRequest) async throws -> RectifyImageResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await rectifyImageWithOptions(request as! RectifyImageRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func rollbackSubSceneWithOptions(_ request: RollbackSubSceneRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> RollbackSubSceneResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.id)) { query["Id"] = request.id ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "RollbackSubScene", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(RollbackSubSceneResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(RollbackSubSceneResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func rollbackSubScene(_ request: RollbackSubSceneRequest) async throws -> RollbackSubSceneResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await rollbackSubSceneWithOptions(request as! RollbackSubSceneRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func saveHotspotConfigWithOptions(_ request: SaveHotspotConfigRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> SaveHotspotConfigResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.paramTag)) { query["ParamTag"] = request.paramTag ?? ""; } if (!TeaUtils.Client.isUnset(request.previewToken)) { query["PreviewToken"] = request.previewToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "SaveHotspotConfig", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(SaveHotspotConfigResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(SaveHotspotConfigResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func saveHotspotConfig(_ request: SaveHotspotConfigRequest) async throws -> SaveHotspotConfigResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await saveHotspotConfigWithOptions(request as! SaveHotspotConfigRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func saveHotspotTagWithOptions(_ request: SaveHotspotTagRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> SaveHotspotTagResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.paramTag)) { query["ParamTag"] = request.paramTag ?? ""; } if (!TeaUtils.Client.isUnset(request.subSceneUuid)) { query["SubSceneUuid"] = request.subSceneUuid ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "SaveHotspotTag", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(SaveHotspotTagResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(SaveHotspotTagResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func saveHotspotTag(_ request: SaveHotspotTagRequest) async throws -> SaveHotspotTagResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await saveHotspotTagWithOptions(request as! SaveHotspotTagRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func saveHotspotTagListWithOptions(_ request: SaveHotspotTagListRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> SaveHotspotTagListResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.hotspotListJson)) { query["HotspotListJson"] = request.hotspotListJson ?? ""; } if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "SaveHotspotTagList", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(SaveHotspotTagListResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(SaveHotspotTagListResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func saveHotspotTagList(_ request: SaveHotspotTagListRequest) async throws -> SaveHotspotTagListResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await saveHotspotTagListWithOptions(request as! SaveHotspotTagListRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func saveMinimapWithOptions(_ request: SaveMinimapRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> SaveMinimapResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.data)) { query["Data"] = request.data ?? ""; } if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "SaveMinimap", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(SaveMinimapResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(SaveMinimapResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func saveMinimap(_ request: SaveMinimapRequest) async throws -> SaveMinimapResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await saveMinimapWithOptions(request as! SaveMinimapRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func saveModelConfigWithOptions(_ request: SaveModelConfigRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> SaveModelConfigResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.data)) { query["Data"] = request.data ?? ""; } if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "SaveModelConfig", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(SaveModelConfigResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(SaveModelConfigResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func saveModelConfig(_ request: SaveModelConfigRequest) async throws -> SaveModelConfigResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await saveModelConfigWithOptions(request as! SaveModelConfigRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func scenePublishWithOptions(_ request: ScenePublishRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> ScenePublishResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ScenePublish", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ScenePublishResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ScenePublishResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func scenePublish(_ request: ScenePublishRequest) async throws -> ScenePublishResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await scenePublishWithOptions(request as! ScenePublishRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func tempPreviewWithOptions(_ request: TempPreviewRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> TempPreviewResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "TempPreview", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(TempPreviewResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(TempPreviewResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func tempPreview(_ request: TempPreviewRequest) async throws -> TempPreviewResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await tempPreviewWithOptions(request as! TempPreviewRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func tempPreviewStatusWithOptions(_ request: TempPreviewStatusRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> TempPreviewStatusResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "TempPreviewStatus", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(TempPreviewStatusResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(TempPreviewStatusResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func tempPreviewStatus(_ request: TempPreviewStatusRequest) async throws -> TempPreviewStatusResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await tempPreviewStatusWithOptions(request as! TempPreviewStatusRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateConnDataWithOptions(_ request: UpdateConnDataRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateConnDataResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.connData)) { query["ConnData"] = request.connData ?? ""; } if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateConnData", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateConnDataResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateConnDataResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateConnData(_ request: UpdateConnDataRequest) async throws -> UpdateConnDataResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await updateConnDataWithOptions(request as! UpdateConnDataRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateLayoutDataWithOptions(_ request: UpdateLayoutDataRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateLayoutDataResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.layoutData)) { query["LayoutData"] = request.layoutData ?? ""; } if (!TeaUtils.Client.isUnset(request.subSceneId)) { query["SubSceneId"] = request.subSceneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateLayoutData", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateLayoutDataResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateLayoutDataResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateLayoutData(_ request: UpdateLayoutDataRequest) async throws -> UpdateLayoutDataResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await updateLayoutDataWithOptions(request as! UpdateLayoutDataRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateProjectWithOptions(_ request: UpdateProjectRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateProjectResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.businessId)) { query["BusinessId"] = request.businessId ?? ""; } if (!TeaUtils.Client.isUnset(request.id)) { query["Id"] = request.id ?? ""; } if (!TeaUtils.Client.isUnset(request.name)) { query["Name"] = request.name ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateProject", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateProjectResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateProjectResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateProject(_ request: UpdateProjectRequest) async throws -> UpdateProjectResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await updateProjectWithOptions(request as! UpdateProjectRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateSceneWithOptions(_ request: UpdateSceneRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateSceneResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.id)) { query["Id"] = request.id ?? ""; } if (!TeaUtils.Client.isUnset(request.name)) { query["Name"] = request.name ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateScene", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateSceneResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateSceneResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateScene(_ request: UpdateSceneRequest) async throws -> UpdateSceneResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await updateSceneWithOptions(request as! UpdateSceneRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateSubSceneWithOptions(_ tmpReq: UpdateSubSceneRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateSubSceneResponse { try TeaUtils.Client.validateModel(tmpReq) var request: UpdateSubSceneShrinkRequest = UpdateSubSceneShrinkRequest([:]) AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request) if (!TeaUtils.Client.isUnset(tmpReq.viewPoint)) { request.viewPointShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.viewPoint, "ViewPoint", "json") } var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.id)) { query["Id"] = request.id ?? ""; } if (!TeaUtils.Client.isUnset(request.name)) { query["Name"] = request.name ?? ""; } if (!TeaUtils.Client.isUnset(request.viewPointShrink)) { query["ViewPoint"] = request.viewPointShrink ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateSubScene", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateSubSceneResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateSubSceneResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateSubScene(_ request: UpdateSubSceneRequest) async throws -> UpdateSubSceneResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await updateSubSceneWithOptions(request as! UpdateSubSceneRequest, runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateSubSceneSeqWithOptions(_ tmpReq: UpdateSubSceneSeqRequest, _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateSubSceneSeqResponse { try TeaUtils.Client.validateModel(tmpReq) var request: UpdateSubSceneSeqShrinkRequest = UpdateSubSceneSeqShrinkRequest([:]) AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request) if (!TeaUtils.Client.isUnset(tmpReq.sortSubSceneIds)) { request.sortSubSceneIdsShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.sortSubSceneIds, "SortSubSceneIds", "json") } var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.sceneId)) { query["SceneId"] = request.sceneId ?? ""; } if (!TeaUtils.Client.isUnset(request.sortSubSceneIdsShrink)) { query["SortSubSceneIds"] = request.sortSubSceneIdsShrink ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateSubSceneSeq", "version": "2020-01-01", "protocol": "HTTPS", "pathname": "/", "method": "POST", "authType": "AK", "style": "RPC", "reqBodyType": "formData", "bodyType": "json" ]) if (TeaUtils.Client.isUnset(self._signatureVersion) || !TeaUtils.Client.equalString(self._signatureVersion, "v4")) { var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateSubSceneSeqResponse(), tmp) } else { var tmp: [String: Any] = try await execute(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateSubSceneSeqResponse(), tmp) } } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateSubSceneSeq(_ request: UpdateSubSceneSeqRequest) async throws -> UpdateSubSceneSeqResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) return try await updateSubSceneSeqWithOptions(request as! UpdateSubSceneSeqRequest, runtime as! TeaUtils.RuntimeOptions) } }