elasticsearch-20170613/Sources/AlibabacloudElasticsearch20170613/Client.swift (6,758 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._signatureAlgorithm = "v2" self._endpointRule = "regional" try checkConfig(config as! AlibabacloudOpenApi.Config) self._endpoint = try getEndpoint("elasticsearch", 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 activateZonesWithOptions(_ InstanceId: String, _ request: ActivateZonesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ActivateZonesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ActivateZones", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/recover-zones", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ActivateZonesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func activateZones(_ InstanceId: String, _ request: ActivateZonesRequest) async throws -> ActivateZonesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await activateZonesWithOptions(InstanceId as! String, request as! ActivateZonesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func addConnectableClusterWithOptions(_ InstanceId: String, _ request: AddConnectableClusterRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> AddConnectableClusterResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "AddConnectableCluster", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/connected-clusters", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(AddConnectableClusterResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func addConnectableCluster(_ InstanceId: String, _ request: AddConnectableClusterRequest) async throws -> AddConnectableClusterResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await addConnectableClusterWithOptions(InstanceId as! String, request as! AddConnectableClusterRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func addSnapshotRepoWithOptions(_ InstanceId: String, _ request: AddSnapshotRepoRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> AddSnapshotRepoResponse { try TeaUtils.Client.validateModel(request) var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "AddSnapshotRepo", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/snapshot-repos", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(AddSnapshotRepoResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func addSnapshotRepo(_ InstanceId: String, _ request: AddSnapshotRepoRequest) async throws -> AddSnapshotRepoResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await addSnapshotRepoWithOptions(InstanceId as! String, request as! AddSnapshotRepoRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func cancelDeletionWithOptions(_ InstanceId: String, _ request: CancelDeletionRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> CancelDeletionResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "CancelDeletion", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/cancel-deletion", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CancelDeletionResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func cancelDeletion(_ InstanceId: String, _ request: CancelDeletionRequest) async throws -> CancelDeletionResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await cancelDeletionWithOptions(InstanceId as! String, request as! CancelDeletionRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func cancelLogstashDeletionWithOptions(_ InstanceId: String, _ request: CancelLogstashDeletionRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> CancelLogstashDeletionResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "CancelLogstashDeletion", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/cancel-deletion", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CancelLogstashDeletionResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func cancelLogstashDeletion(_ InstanceId: String, _ request: CancelLogstashDeletionRequest) async throws -> CancelLogstashDeletionResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await cancelLogstashDeletionWithOptions(InstanceId as! String, request as! CancelLogstashDeletionRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func cancelTaskWithOptions(_ InstanceId: String, _ request: CancelTaskRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> CancelTaskResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.taskType)) { query["taskType"] = request.taskType ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "CancelTask", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/cancel-task", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CancelTaskResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func cancelTask(_ InstanceId: String, _ request: CancelTaskRequest) async throws -> CancelTaskResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await cancelTaskWithOptions(InstanceId as! String, request as! CancelTaskRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func capacityPlanWithOptions(_ request: CapacityPlanRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> CapacityPlanResponse { try TeaUtils.Client.validateModel(request) var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.complexQueryAvailable)) { body["complexQueryAvailable"] = request.complexQueryAvailable!; } if (!TeaUtils.Client.isUnset(request.dataInfo)) { body["dataInfo"] = request.dataInfo ?? []; } if (!TeaUtils.Client.isUnset(request.metric)) { body["metric"] = request.metric ?? []; } if (!TeaUtils.Client.isUnset(request.usageScenario)) { body["usageScenario"] = request.usageScenario ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "CapacityPlan", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/assist/actions/capacity-plan", "method": "POST", "authType": "Anonymous", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CapacityPlanResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func capacityPlan(_ request: CapacityPlanRequest) async throws -> CapacityPlanResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await capacityPlanWithOptions(request as! CapacityPlanRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func closeDiagnosisWithOptions(_ InstanceId: String, _ request: CloseDiagnosisRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> CloseDiagnosisResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.lang)) { query["lang"] = request.lang ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "CloseDiagnosis", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/diagnosis/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/close-diagnosis", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CloseDiagnosisResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func closeDiagnosis(_ InstanceId: String, _ request: CloseDiagnosisRequest) async throws -> CloseDiagnosisResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await closeDiagnosisWithOptions(InstanceId as! String, request as! CloseDiagnosisRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func closeHttpsWithOptions(_ InstanceId: String, _ request: CloseHttpsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> CloseHttpsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "CloseHttps", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/close-https", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CloseHttpsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func closeHttps(_ InstanceId: String, _ request: CloseHttpsRequest) async throws -> CloseHttpsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await closeHttpsWithOptions(InstanceId as! String, request as! CloseHttpsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func closeManagedIndexWithOptions(_ InstanceId: String, _ Index: String, _ request: CloseManagedIndexRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> CloseManagedIndexResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "CloseManagedIndex", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/indices/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(Index)) + "/close-managed", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CloseManagedIndexResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func closeManagedIndex(_ InstanceId: String, _ Index: String, _ request: CloseManagedIndexRequest) async throws -> CloseManagedIndexResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await closeManagedIndexWithOptions(InstanceId as! String, Index as! String, request as! CloseManagedIndexRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func createCollectorWithOptions(_ request: CreateCollectorRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateCollectorResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.collectorPaths)) { body["collectorPaths"] = request.collectorPaths ?? []; } if (!TeaUtils.Client.isUnset(request.configs)) { body["configs"] = request.configs ?? []; } if (!TeaUtils.Client.isUnset(request.dryRun)) { body["dryRun"] = request.dryRun!; } if (!TeaUtils.Client.isUnset(request.extendConfigs)) { body["extendConfigs"] = request.extendConfigs ?? []; } if (!TeaUtils.Client.isUnset(request.name)) { body["name"] = request.name ?? ""; } if (!TeaUtils.Client.isUnset(request.resType)) { body["resType"] = request.resType ?? ""; } if (!TeaUtils.Client.isUnset(request.resVersion)) { body["resVersion"] = request.resVersion ?? ""; } if (!TeaUtils.Client.isUnset(request.vpcId)) { body["vpcId"] = request.vpcId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "CreateCollector", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/collectors", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CreateCollectorResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func createCollector(_ request: CreateCollectorRequest) async throws -> CreateCollectorResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await createCollectorWithOptions(request as! CreateCollectorRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func createComponentIndexWithOptions(_ InstanceId: String, _ name: String, _ request: CreateComponentIndexRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateComponentIndexResponse { try TeaUtils.Client.validateModel(request) var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.meta)) { body["_meta"] = request.meta ?? [:]; } if (!TeaUtils.Client.isUnset(request.template)) { body["template"] = request.template!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "CreateComponentIndex", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/component-index/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(name)), "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CreateComponentIndexResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func createComponentIndex(_ InstanceId: String, _ name: String, _ request: CreateComponentIndexRequest) async throws -> CreateComponentIndexResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await createComponentIndexWithOptions(InstanceId as! String, name as! String, request as! CreateComponentIndexRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func createDataStreamWithOptions(_ InstanceId: String, _ request: CreateDataStreamRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateDataStreamResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "CreateDataStream", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/data-streams", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CreateDataStreamResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func createDataStream(_ InstanceId: String, _ request: CreateDataStreamRequest) async throws -> CreateDataStreamResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await createDataStreamWithOptions(InstanceId as! String, request as! CreateDataStreamRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func createILMPolicyWithOptions(_ InstanceId: String, _ request: CreateILMPolicyRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateILMPolicyResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "CreateILMPolicy", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/ilm-policies", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CreateILMPolicyResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func createILMPolicy(_ InstanceId: String, _ request: CreateILMPolicyRequest) async throws -> CreateILMPolicyResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await createILMPolicyWithOptions(InstanceId as! String, request as! CreateILMPolicyRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func createIndexTemplateWithOptions(_ InstanceId: String, _ request: CreateIndexTemplateRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateIndexTemplateResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.dataStream)) { body["dataStream"] = request.dataStream!; } if (!TeaUtils.Client.isUnset(request.ilmPolicy)) { body["ilmPolicy"] = request.ilmPolicy ?? ""; } if (!TeaUtils.Client.isUnset(request.indexPatterns)) { body["indexPatterns"] = request.indexPatterns ?? []; } if (!TeaUtils.Client.isUnset(request.indexTemplate)) { body["indexTemplate"] = request.indexTemplate ?? ""; } if (!TeaUtils.Client.isUnset(request.priority)) { body["priority"] = request.priority!; } if (!TeaUtils.Client.isUnset(request.template)) { body["template"] = request.template!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "CreateIndexTemplate", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/index-templates", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CreateIndexTemplateResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func createIndexTemplate(_ InstanceId: String, _ request: CreateIndexTemplateRequest) async throws -> CreateIndexTemplateResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await createIndexTemplateWithOptions(InstanceId as! String, request as! CreateIndexTemplateRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func createLogstashWithOptions(_ request: CreateLogstashRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateLogstashResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.description_)) { body["description"] = request.description_ ?? ""; } if (!TeaUtils.Client.isUnset(request.networkConfig)) { body["networkConfig"] = request.networkConfig!; } if (!TeaUtils.Client.isUnset(request.nodeAmount)) { body["nodeAmount"] = request.nodeAmount!; } if (!TeaUtils.Client.isUnset(request.nodeSpec)) { body["nodeSpec"] = request.nodeSpec!; } if (!TeaUtils.Client.isUnset(request.paymentInfo)) { body["paymentInfo"] = request.paymentInfo!; } if (!TeaUtils.Client.isUnset(request.paymentType)) { body["paymentType"] = request.paymentType ?? ""; } if (!TeaUtils.Client.isUnset(request.resourceGroupId)) { body["resourceGroupId"] = request.resourceGroupId ?? ""; } if (!TeaUtils.Client.isUnset(request.version)) { body["version"] = request.version ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "CreateLogstash", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CreateLogstashResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func createLogstash(_ request: CreateLogstashRequest) async throws -> CreateLogstashResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await createLogstashWithOptions(request as! CreateLogstashRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func createPipelinesWithOptions(_ InstanceId: String, _ request: CreatePipelinesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> CreatePipelinesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.trigger)) { query["trigger"] = request.trigger!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": TeaUtils.Client.toArray(request.body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "CreatePipelines", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/pipelines", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CreatePipelinesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func createPipelines(_ InstanceId: String, _ request: CreatePipelinesRequest) async throws -> CreatePipelinesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await createPipelinesWithOptions(InstanceId as! String, request as! CreatePipelinesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func createSnapshotWithOptions(_ InstanceId: String, _ request: CreateSnapshotRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateSnapshotResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "CreateSnapshot", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/snapshots", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CreateSnapshotResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func createSnapshot(_ InstanceId: String, _ request: CreateSnapshotRequest) async throws -> CreateSnapshotResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await createSnapshotWithOptions(InstanceId as! String, request as! CreateSnapshotRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func createVpcEndpointWithOptions(_ InstanceId: String, _ request: CreateVpcEndpointRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateVpcEndpointResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.dryRun)) { query["dryRun"] = request.dryRun!; } var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.serviceId)) { body["serviceId"] = request.serviceId ?? ""; } if (!TeaUtils.Client.isUnset(request.zoneId)) { body["zoneId"] = request.zoneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "CreateVpcEndpoint", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/vpc-endpoints", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CreateVpcEndpointResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func createVpcEndpoint(_ InstanceId: String, _ request: CreateVpcEndpointRequest) async throws -> CreateVpcEndpointResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await createVpcEndpointWithOptions(InstanceId as! String, request as! CreateVpcEndpointRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deactivateZonesWithOptions(_ InstanceId: String, _ request: DeactivateZonesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DeactivateZonesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DeactivateZones", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/down-zones", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DeactivateZonesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deactivateZones(_ InstanceId: String, _ request: DeactivateZonesRequest) async throws -> DeactivateZonesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await deactivateZonesWithOptions(InstanceId as! String, request as! DeactivateZonesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteCollectorWithOptions(_ ResId: String, _ request: DeleteCollectorRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteCollectorResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DeleteCollector", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/collectors/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(ResId)), "method": "DELETE", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DeleteCollectorResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteCollector(_ ResId: String, _ request: DeleteCollectorRequest) async throws -> DeleteCollectorResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await deleteCollectorWithOptions(ResId as! String, request as! DeleteCollectorRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteComponentIndexWithOptions(_ InstanceId: String, _ name: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteComponentIndexResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DeleteComponentIndex", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/component-index/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(name)), "method": "DELETE", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DeleteComponentIndexResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteComponentIndex(_ InstanceId: String, _ name: String) async throws -> DeleteComponentIndexResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await deleteComponentIndexWithOptions(InstanceId as! String, name as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteConnectedClusterWithOptions(_ InstanceId: String, _ request: DeleteConnectedClusterRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteConnectedClusterResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.connectedInstanceId)) { query["connectedInstanceId"] = request.connectedInstanceId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DeleteConnectedCluster", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/connected-clusters", "method": "DELETE", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DeleteConnectedClusterResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteConnectedCluster(_ InstanceId: String, _ request: DeleteConnectedClusterRequest) async throws -> DeleteConnectedClusterResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await deleteConnectedClusterWithOptions(InstanceId as! String, request as! DeleteConnectedClusterRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteDataStreamWithOptions(_ InstanceId: String, _ DataStream: String, _ request: DeleteDataStreamRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteDataStreamResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DeleteDataStream", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/data-streams/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(DataStream)), "method": "DELETE", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DeleteDataStreamResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteDataStream(_ InstanceId: String, _ DataStream: String, _ request: DeleteDataStreamRequest) async throws -> DeleteDataStreamResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await deleteDataStreamWithOptions(InstanceId as! String, DataStream as! String, request as! DeleteDataStreamRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteDataTaskWithOptions(_ InstanceId: String, _ request: DeleteDataTaskRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteDataTaskResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.taskId)) { query["taskId"] = request.taskId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DeleteDataTask", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/data-task", "method": "DELETE", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DeleteDataTaskResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteDataTask(_ InstanceId: String, _ request: DeleteDataTaskRequest) async throws -> DeleteDataTaskResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await deleteDataTaskWithOptions(InstanceId as! String, request as! DeleteDataTaskRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteDeprecatedTemplateWithOptions(_ InstanceId: String, _ name: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteDeprecatedTemplateResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DeleteDeprecatedTemplate", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/deprecated-templates/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(name)), "method": "DELETE", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DeleteDeprecatedTemplateResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteDeprecatedTemplate(_ InstanceId: String, _ name: String) async throws -> DeleteDeprecatedTemplateResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await deleteDeprecatedTemplateWithOptions(InstanceId as! String, name as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteILMPolicyWithOptions(_ InstanceId: String, _ PolicyName: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteILMPolicyResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DeleteILMPolicy", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/ilm-policies/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(PolicyName)), "method": "DELETE", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DeleteILMPolicyResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteILMPolicy(_ InstanceId: String, _ PolicyName: String) async throws -> DeleteILMPolicyResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await deleteILMPolicyWithOptions(InstanceId as! String, PolicyName as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteIndexTemplateWithOptions(_ InstanceId: String, _ IndexTemplate: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteIndexTemplateResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DeleteIndexTemplate", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/index-templates/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(IndexTemplate)), "method": "DELETE", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DeleteIndexTemplateResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteIndexTemplate(_ InstanceId: String, _ IndexTemplate: String) async throws -> DeleteIndexTemplateResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await deleteIndexTemplateWithOptions(InstanceId as! String, IndexTemplate as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteInstanceWithOptions(_ InstanceId: String, _ request: DeleteInstanceRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteInstanceResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.deleteType)) { query["deleteType"] = request.deleteType ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DeleteInstance", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)), "method": "DELETE", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DeleteInstanceResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteInstance(_ InstanceId: String, _ request: DeleteInstanceRequest) async throws -> DeleteInstanceResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await deleteInstanceWithOptions(InstanceId as! String, request as! DeleteInstanceRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteLogstashWithOptions(_ InstanceId: String, _ request: DeleteLogstashRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteLogstashResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.deleteType)) { query["deleteType"] = request.deleteType ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DeleteLogstash", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)), "method": "DELETE", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DeleteLogstashResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteLogstash(_ InstanceId: String, _ request: DeleteLogstashRequest) async throws -> DeleteLogstashResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await deleteLogstashWithOptions(InstanceId as! String, request as! DeleteLogstashRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deletePipelinesWithOptions(_ InstanceId: String, _ request: DeletePipelinesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DeletePipelinesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.pipelineIds)) { query["pipelineIds"] = request.pipelineIds ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DeletePipelines", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/pipelines", "method": "DELETE", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DeletePipelinesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deletePipelines(_ InstanceId: String, _ request: DeletePipelinesRequest) async throws -> DeletePipelinesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await deletePipelinesWithOptions(InstanceId as! String, request as! DeletePipelinesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteSnapshotRepoWithOptions(_ InstanceId: String, _ request: DeleteSnapshotRepoRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteSnapshotRepoResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.repoPath)) { query["repoPath"] = request.repoPath ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DeleteSnapshotRepo", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/snapshot-repos", "method": "DELETE", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DeleteSnapshotRepoResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteSnapshotRepo(_ InstanceId: String, _ request: DeleteSnapshotRepoRequest) async throws -> DeleteSnapshotRepoResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await deleteSnapshotRepoWithOptions(InstanceId as! String, request as! DeleteSnapshotRepoRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteVpcEndpointWithOptions(_ InstanceId: String, _ EndpointId: String, _ request: DeleteVpcEndpointRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DeleteVpcEndpointResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DeleteVpcEndpoint", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/vpc-endpoints/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(EndpointId)), "method": "DELETE", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DeleteVpcEndpointResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func deleteVpcEndpoint(_ InstanceId: String, _ EndpointId: String, _ request: DeleteVpcEndpointRequest) async throws -> DeleteVpcEndpointResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await deleteVpcEndpointWithOptions(InstanceId as! String, EndpointId as! String, request as! DeleteVpcEndpointRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeAckOperatorWithOptions(_ ClusterId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DescribeAckOperatorResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DescribeAckOperator", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/ack-clusters/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(ClusterId)) + "/operator", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DescribeAckOperatorResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeAckOperator(_ ClusterId: String) async throws -> DescribeAckOperatorResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await describeAckOperatorWithOptions(ClusterId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeApmWithOptions(_ instanceId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DescribeApmResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DescribeApm", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/apm/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(instanceId)), "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DescribeApmResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeApm(_ instanceId: String) async throws -> DescribeApmResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await describeApmWithOptions(instanceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeCollectorWithOptions(_ ResId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DescribeCollectorResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DescribeCollector", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/collectors/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(ResId)), "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DescribeCollectorResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeCollector(_ ResId: String) async throws -> DescribeCollectorResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await describeCollectorWithOptions(ResId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeComponentIndexWithOptions(_ InstanceId: String, _ name: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DescribeComponentIndexResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DescribeComponentIndex", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/component-index/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(name)), "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DescribeComponentIndexResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeComponentIndex(_ InstanceId: String, _ name: String) async throws -> DescribeComponentIndexResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await describeComponentIndexWithOptions(InstanceId as! String, name as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeConnectableClustersWithOptions(_ InstanceId: String, _ request: DescribeConnectableClustersRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DescribeConnectableClustersResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.alreadySetItems)) { query["alreadySetItems"] = request.alreadySetItems!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DescribeConnectableClusters", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/connectable-clusters", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DescribeConnectableClustersResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeConnectableClusters(_ InstanceId: String, _ request: DescribeConnectableClustersRequest) async throws -> DescribeConnectableClustersResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await describeConnectableClustersWithOptions(InstanceId as! String, request as! DescribeConnectableClustersRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeDeprecatedTemplateWithOptions(_ InstanceId: String, _ name: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DescribeDeprecatedTemplateResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DescribeDeprecatedTemplate", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/deprecated-templates/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(name)), "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DescribeDeprecatedTemplateResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeDeprecatedTemplate(_ InstanceId: String, _ name: String) async throws -> DescribeDeprecatedTemplateResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await describeDeprecatedTemplateWithOptions(InstanceId as! String, name as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeDiagnoseReportWithOptions(_ InstanceId: String, _ ReportId: String, _ request: DescribeDiagnoseReportRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DescribeDiagnoseReportResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.lang)) { query["lang"] = request.lang ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DescribeDiagnoseReport", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/diagnosis/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/reports/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(ReportId)), "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DescribeDiagnoseReportResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeDiagnoseReport(_ InstanceId: String, _ ReportId: String, _ request: DescribeDiagnoseReportRequest) async throws -> DescribeDiagnoseReportResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await describeDiagnoseReportWithOptions(InstanceId as! String, ReportId as! String, request as! DescribeDiagnoseReportRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeDiagnosisSettingsWithOptions(_ InstanceId: String, _ request: DescribeDiagnosisSettingsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DescribeDiagnosisSettingsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.lang)) { query["lang"] = request.lang ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DescribeDiagnosisSettings", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/diagnosis/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/settings", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DescribeDiagnosisSettingsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeDiagnosisSettings(_ InstanceId: String, _ request: DescribeDiagnosisSettingsRequest) async throws -> DescribeDiagnosisSettingsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await describeDiagnosisSettingsWithOptions(InstanceId as! String, request as! DescribeDiagnosisSettingsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeDynamicSettingsWithOptions(_ InstanceId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DescribeDynamicSettingsResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DescribeDynamicSettings", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/dynamic-settings", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DescribeDynamicSettingsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeDynamicSettings(_ InstanceId: String) async throws -> DescribeDynamicSettingsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await describeDynamicSettingsWithOptions(InstanceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeElasticsearchHealthWithOptions(_ InstanceId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DescribeElasticsearchHealthResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DescribeElasticsearchHealth", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/elasticsearch-health", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DescribeElasticsearchHealthResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeElasticsearchHealth(_ InstanceId: String) async throws -> DescribeElasticsearchHealthResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await describeElasticsearchHealthWithOptions(InstanceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeILMPolicyWithOptions(_ InstanceId: String, _ PolicyName: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DescribeILMPolicyResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DescribeILMPolicy", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/ilm-policies/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(PolicyName)), "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DescribeILMPolicyResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeILMPolicy(_ InstanceId: String, _ PolicyName: String) async throws -> DescribeILMPolicyResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await describeILMPolicyWithOptions(InstanceId as! String, PolicyName as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeIndexTemplateWithOptions(_ InstanceId: String, _ IndexTemplate: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DescribeIndexTemplateResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DescribeIndexTemplate", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/index-templates/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(IndexTemplate)), "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DescribeIndexTemplateResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeIndexTemplate(_ InstanceId: String, _ IndexTemplate: String) async throws -> DescribeIndexTemplateResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await describeIndexTemplateWithOptions(InstanceId as! String, IndexTemplate as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeInstanceWithOptions(_ InstanceId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DescribeInstanceResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DescribeInstance", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)), "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DescribeInstanceResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeInstance(_ InstanceId: String) async throws -> DescribeInstanceResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await describeInstanceWithOptions(InstanceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeKibanaSettingsWithOptions(_ InstanceId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DescribeKibanaSettingsResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DescribeKibanaSettings", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/kibana-settings", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DescribeKibanaSettingsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeKibanaSettings(_ InstanceId: String) async throws -> DescribeKibanaSettingsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await describeKibanaSettingsWithOptions(InstanceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeLogstashWithOptions(_ InstanceId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DescribeLogstashResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DescribeLogstash", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)), "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DescribeLogstashResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeLogstash(_ InstanceId: String) async throws -> DescribeLogstashResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await describeLogstashWithOptions(InstanceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describePipelineWithOptions(_ InstanceId: String, _ PipelineId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DescribePipelineResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DescribePipeline", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/pipelines/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(PipelineId)), "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DescribePipelineResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describePipeline(_ InstanceId: String, _ PipelineId: String) async throws -> DescribePipelineResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await describePipelineWithOptions(InstanceId as! String, PipelineId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describePipelineManagementConfigWithOptions(_ InstanceId: String, _ request: DescribePipelineManagementConfigRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DescribePipelineManagementConfigResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DescribePipelineManagementConfig", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/pipeline-management-config", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DescribePipelineManagementConfigResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describePipelineManagementConfig(_ InstanceId: String, _ request: DescribePipelineManagementConfigRequest) async throws -> DescribePipelineManagementConfigResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await describePipelineManagementConfigWithOptions(InstanceId as! String, request as! DescribePipelineManagementConfigRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeRegionsWithOptions(_ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DescribeRegionsResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DescribeRegions", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/regions", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DescribeRegionsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeRegions() async throws -> DescribeRegionsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await describeRegionsWithOptions(headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeSnapshotSettingWithOptions(_ InstanceId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DescribeSnapshotSettingResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DescribeSnapshotSetting", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/snapshot-setting", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DescribeSnapshotSettingResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeSnapshotSetting(_ InstanceId: String) async throws -> DescribeSnapshotSettingResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await describeSnapshotSettingWithOptions(InstanceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeTemplatesWithOptions(_ InstanceId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DescribeTemplatesResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DescribeTemplates", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/templates", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DescribeTemplatesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeTemplates(_ InstanceId: String) async throws -> DescribeTemplatesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await describeTemplatesWithOptions(InstanceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeXpackMonitorConfigWithOptions(_ InstanceId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DescribeXpackMonitorConfigResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DescribeXpackMonitorConfig", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/xpack-monitor-config", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DescribeXpackMonitorConfigResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func describeXpackMonitorConfig(_ InstanceId: String) async throws -> DescribeXpackMonitorConfigResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await describeXpackMonitorConfigWithOptions(InstanceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func diagnoseInstanceWithOptions(_ InstanceId: String, _ request: DiagnoseInstanceRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DiagnoseInstanceResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.lang)) { query["lang"] = request.lang ?? ""; } var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.diagnoseItems)) { body["diagnoseItems"] = request.diagnoseItems ?? []; } if (!TeaUtils.Client.isUnset(request.indices)) { body["indices"] = request.indices ?? []; } if (!TeaUtils.Client.isUnset(request.type)) { body["type"] = request.type ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DiagnoseInstance", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/diagnosis/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/diagnose", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DiagnoseInstanceResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func diagnoseInstance(_ InstanceId: String, _ request: DiagnoseInstanceRequest) async throws -> DiagnoseInstanceResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await diagnoseInstanceWithOptions(InstanceId as! String, request as! DiagnoseInstanceRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func disableKibanaPvlNetworkWithOptions(_ InstanceId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> DisableKibanaPvlNetworkResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "DisableKibanaPvlNetwork", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/disable-kibana-private", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(DisableKibanaPvlNetworkResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func disableKibanaPvlNetwork(_ InstanceId: String) async throws -> DisableKibanaPvlNetworkResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await disableKibanaPvlNetworkWithOptions(InstanceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func enableKibanaPvlNetworkWithOptions(_ InstanceId: String, _ request: EnableKibanaPvlNetworkRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> EnableKibanaPvlNetworkResponse { try TeaUtils.Client.validateModel(request) var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.endpointName)) { body["endpointName"] = request.endpointName ?? ""; } if (!TeaUtils.Client.isUnset(request.securityGroups)) { body["securityGroups"] = request.securityGroups ?? []; } if (!TeaUtils.Client.isUnset(request.vSwitchIdsZone)) { body["vSwitchIdsZone"] = request.vSwitchIdsZone ?? []; } if (!TeaUtils.Client.isUnset(request.vpcId)) { body["vpcId"] = request.vpcId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "EnableKibanaPvlNetwork", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/enable-kibana-private", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(EnableKibanaPvlNetworkResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func enableKibanaPvlNetwork(_ InstanceId: String, _ request: EnableKibanaPvlNetworkRequest) async throws -> EnableKibanaPvlNetworkResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await enableKibanaPvlNetworkWithOptions(InstanceId as! String, request as! EnableKibanaPvlNetworkRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func estimatedLogstashRestartTimeWithOptions(_ InstanceId: String, _ request: EstimatedLogstashRestartTimeRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> EstimatedLogstashRestartTimeResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.force)) { query["force"] = request.force!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "EstimatedLogstashRestartTime", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/estimated-time/restart-time", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(EstimatedLogstashRestartTimeResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func estimatedLogstashRestartTime(_ InstanceId: String, _ request: EstimatedLogstashRestartTimeRequest) async throws -> EstimatedLogstashRestartTimeResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await estimatedLogstashRestartTimeWithOptions(InstanceId as! String, request as! EstimatedLogstashRestartTimeRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func estimatedRestartTimeWithOptions(_ InstanceId: String, _ request: EstimatedRestartTimeRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> EstimatedRestartTimeResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.force)) { query["force"] = request.force!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "EstimatedRestartTime", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/estimated-time/restart-time", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(EstimatedRestartTimeResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func estimatedRestartTime(_ InstanceId: String, _ request: EstimatedRestartTimeRequest) async throws -> EstimatedRestartTimeResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await estimatedRestartTimeWithOptions(InstanceId as! String, request as! EstimatedRestartTimeRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getClusterDataInformationWithOptions(_ request: GetClusterDataInformationRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> GetClusterDataInformationResponse { try TeaUtils.Client.validateModel(request) var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetClusterDataInformation", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/cluster/data-information", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetClusterDataInformationResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getClusterDataInformation(_ request: GetClusterDataInformationRequest) async throws -> GetClusterDataInformationResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await getClusterDataInformationWithOptions(request as! GetClusterDataInformationRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getElastictaskWithOptions(_ InstanceId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> GetElastictaskResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetElastictask", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/elastic-task", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetElastictaskResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getElastictask(_ InstanceId: String) async throws -> GetElastictaskResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await getElastictaskWithOptions(InstanceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getEmonGrafanaAlertsWithOptions(_ ProjectId: String, _ request: GetEmonGrafanaAlertsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> GetEmonGrafanaAlertsResponse { try TeaUtils.Client.validateModel(request) var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetEmonGrafanaAlerts", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/emon/projects/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(ProjectId)) + "/grafana/proxy/api/alerts", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetEmonGrafanaAlertsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getEmonGrafanaAlerts(_ ProjectId: String, _ request: GetEmonGrafanaAlertsRequest) async throws -> GetEmonGrafanaAlertsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await getEmonGrafanaAlertsWithOptions(ProjectId as! String, request as! GetEmonGrafanaAlertsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getEmonGrafanaDashboardsWithOptions(_ ProjectId: String, _ request: GetEmonGrafanaDashboardsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> GetEmonGrafanaDashboardsResponse { try TeaUtils.Client.validateModel(request) var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetEmonGrafanaDashboards", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/emon/projects/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(ProjectId)) + "/grafana/proxy/api/search", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetEmonGrafanaDashboardsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getEmonGrafanaDashboards(_ ProjectId: String, _ request: GetEmonGrafanaDashboardsRequest) async throws -> GetEmonGrafanaDashboardsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await getEmonGrafanaDashboardsWithOptions(ProjectId as! String, request as! GetEmonGrafanaDashboardsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getEmonMonitorDataWithOptions(_ ProjectId: String, _ request: GetEmonMonitorDataRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> GetEmonMonitorDataResponse { try TeaUtils.Client.validateModel(request) var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetEmonMonitorData", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/emon/projects/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(ProjectId)) + "/metrics/query", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetEmonMonitorDataResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getEmonMonitorData(_ ProjectId: String, _ request: GetEmonMonitorDataRequest) async throws -> GetEmonMonitorDataResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await getEmonMonitorDataWithOptions(ProjectId as! String, request as! GetEmonMonitorDataRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getOpenStoreUsageWithOptions(_ InstanceId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> GetOpenStoreUsageResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetOpenStoreUsage", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/openstore/usage", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetOpenStoreUsageResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getOpenStoreUsage(_ InstanceId: String) async throws -> GetOpenStoreUsageResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await getOpenStoreUsageWithOptions(InstanceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getRegionConfigurationWithOptions(_ request: GetRegionConfigurationRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> GetRegionConfigurationResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.zoneId)) { query["zoneId"] = request.zoneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetRegionConfiguration", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/region", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetRegionConfigurationResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getRegionConfiguration(_ request: GetRegionConfigurationRequest) async throws -> GetRegionConfigurationResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await getRegionConfigurationWithOptions(request as! GetRegionConfigurationRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getRegionalInstanceConfigWithOptions(_ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> GetRegionalInstanceConfigResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetRegionalInstanceConfig", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/regions/instance-config", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetRegionalInstanceConfigResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getRegionalInstanceConfig() async throws -> GetRegionalInstanceConfigResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await getRegionalInstanceConfigWithOptions(headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getSuggestShrinkableNodesWithOptions(_ InstanceId: String, _ request: GetSuggestShrinkableNodesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> GetSuggestShrinkableNodesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.count)) { query["count"] = request.count!; } if (!TeaUtils.Client.isUnset(request.ignoreStatus)) { query["ignoreStatus"] = request.ignoreStatus!; } if (!TeaUtils.Client.isUnset(request.nodeType)) { query["nodeType"] = request.nodeType ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetSuggestShrinkableNodes", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/suggest-shrinkable-nodes", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetSuggestShrinkableNodesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getSuggestShrinkableNodes(_ InstanceId: String, _ request: GetSuggestShrinkableNodesRequest) async throws -> GetSuggestShrinkableNodesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await getSuggestShrinkableNodesWithOptions(InstanceId as! String, request as! GetSuggestShrinkableNodesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getTransferableNodesWithOptions(_ InstanceId: String, _ request: GetTransferableNodesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> GetTransferableNodesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.count)) { query["count"] = request.count!; } if (!TeaUtils.Client.isUnset(request.nodeType)) { query["nodeType"] = request.nodeType ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "GetTransferableNodes", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/transferable-nodes", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(GetTransferableNodesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func getTransferableNodes(_ InstanceId: String, _ request: GetTransferableNodesRequest) async throws -> GetTransferableNodesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await getTransferableNodesWithOptions(InstanceId as! String, request as! GetTransferableNodesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func initializeOperationRoleWithOptions(_ request: InitializeOperationRoleRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> InitializeOperationRoleResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "InitializeOperationRole", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/user/slr", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(InitializeOperationRoleResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func initializeOperationRole(_ request: InitializeOperationRoleRequest) async throws -> InitializeOperationRoleResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await initializeOperationRoleWithOptions(request as! InitializeOperationRoleRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func installAckOperatorWithOptions(_ ClusterId: String, _ request: InstallAckOperatorRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> InstallAckOperatorResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "InstallAckOperator", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/ack-clusters/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(ClusterId)) + "/operator", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(InstallAckOperatorResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func installAckOperator(_ ClusterId: String, _ request: InstallAckOperatorRequest) async throws -> InstallAckOperatorResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await installAckOperatorWithOptions(ClusterId as! String, request as! InstallAckOperatorRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func installKibanaSystemPluginWithOptions(_ InstanceId: String, _ request: InstallKibanaSystemPluginRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> InstallKibanaSystemPluginResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "InstallKibanaSystemPlugin", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/kibana-plugins/system/actions/install", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(InstallKibanaSystemPluginResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func installKibanaSystemPlugin(_ InstanceId: String, _ request: InstallKibanaSystemPluginRequest) async throws -> InstallKibanaSystemPluginResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await installKibanaSystemPluginWithOptions(InstanceId as! String, request as! InstallKibanaSystemPluginRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func installLogstashSystemPluginWithOptions(_ InstanceId: String, _ request: InstallLogstashSystemPluginRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> InstallLogstashSystemPluginResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "InstallLogstashSystemPlugin", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/plugins/system/actions/install", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(InstallLogstashSystemPluginResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func installLogstashSystemPlugin(_ InstanceId: String, _ request: InstallLogstashSystemPluginRequest) async throws -> InstallLogstashSystemPluginResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await installLogstashSystemPluginWithOptions(InstanceId as! String, request as! InstallLogstashSystemPluginRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func installSystemPluginWithOptions(_ InstanceId: String, _ request: InstallSystemPluginRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> InstallSystemPluginResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "InstallSystemPlugin", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/plugins/system/actions/install", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(InstallSystemPluginResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func installSystemPlugin(_ InstanceId: String, _ request: InstallSystemPluginRequest) async throws -> InstallSystemPluginResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await installSystemPluginWithOptions(InstanceId as! String, request as! InstallSystemPluginRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func installUserPluginsWithOptions(_ InstanceId: String, _ request: InstallUserPluginsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> InstallUserPluginsResponse { try TeaUtils.Client.validateModel(request) var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "InstallUserPlugins", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/plugins/user/actions/install", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(InstallUserPluginsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func installUserPlugins(_ InstanceId: String, _ request: InstallUserPluginsRequest) async throws -> InstallUserPluginsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await installUserPluginsWithOptions(InstanceId as! String, request as! InstallUserPluginsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func interruptElasticsearchTaskWithOptions(_ InstanceId: String, _ request: InterruptElasticsearchTaskRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> InterruptElasticsearchTaskResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "InterruptElasticsearchTask", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/interrupt", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(InterruptElasticsearchTaskResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func interruptElasticsearchTask(_ InstanceId: String, _ request: InterruptElasticsearchTaskRequest) async throws -> InterruptElasticsearchTaskResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await interruptElasticsearchTaskWithOptions(InstanceId as! String, request as! InterruptElasticsearchTaskRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func interruptLogstashTaskWithOptions(_ InstanceId: String, _ request: InterruptLogstashTaskRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> InterruptLogstashTaskResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "InterruptLogstashTask", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/interrupt", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(InterruptLogstashTaskResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func interruptLogstashTask(_ InstanceId: String, _ request: InterruptLogstashTaskRequest) async throws -> InterruptLogstashTaskResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await interruptLogstashTaskWithOptions(InstanceId as! String, request as! InterruptLogstashTaskRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listAckClustersWithOptions(_ request: ListAckClustersRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListAckClustersResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page!; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } if (!TeaUtils.Client.isUnset(request.vpcId)) { query["vpcId"] = request.vpcId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListAckClusters", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/ack-clusters", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListAckClustersResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listAckClusters(_ request: ListAckClustersRequest) async throws -> ListAckClustersResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listAckClustersWithOptions(request as! ListAckClustersRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listAckNamespacesWithOptions(_ ClusterId: String, _ request: ListAckNamespacesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListAckNamespacesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page!; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListAckNamespaces", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/ack-clusters/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(ClusterId)) + "/namespaces", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListAckNamespacesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listAckNamespaces(_ ClusterId: String, _ request: ListAckNamespacesRequest) async throws -> ListAckNamespacesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listAckNamespacesWithOptions(ClusterId as! String, request as! ListAckNamespacesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listActionRecordsWithOptions(_ InstanceId: String, _ request: ListActionRecordsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListActionRecordsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.actionNames)) { query["actionNames"] = request.actionNames ?? ""; } if (!TeaUtils.Client.isUnset(request.endTime)) { query["endTime"] = request.endTime!; } if (!TeaUtils.Client.isUnset(request.filter)) { query["filter"] = request.filter ?? ""; } if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page!; } if (!TeaUtils.Client.isUnset(request.requestId)) { query["requestId"] = request.requestId ?? ""; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } if (!TeaUtils.Client.isUnset(request.startTime)) { query["startTime"] = request.startTime!; } if (!TeaUtils.Client.isUnset(request.userId)) { query["userId"] = request.userId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListActionRecords", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/action-records", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListActionRecordsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listActionRecords(_ InstanceId: String, _ request: ListActionRecordsRequest) async throws -> ListActionRecordsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listActionRecordsWithOptions(InstanceId as! String, request as! ListActionRecordsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listAllNodeWithOptions(_ InstanceId: String, _ request: ListAllNodeRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListAllNodeResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.extended)) { query["extended"] = request.extended!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListAllNode", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/nodes", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListAllNodeResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listAllNode(_ InstanceId: String, _ request: ListAllNodeRequest) async throws -> ListAllNodeResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listAllNodeWithOptions(InstanceId as! String, request as! ListAllNodeRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listAlternativeSnapshotReposWithOptions(_ InstanceId: String, _ request: ListAlternativeSnapshotReposRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListAlternativeSnapshotReposResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.alreadySetItems)) { query["alreadySetItems"] = request.alreadySetItems!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListAlternativeSnapshotRepos", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/alternative-snapshot-repos", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListAlternativeSnapshotReposResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listAlternativeSnapshotRepos(_ InstanceId: String, _ request: ListAlternativeSnapshotReposRequest) async throws -> ListAlternativeSnapshotReposResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listAlternativeSnapshotReposWithOptions(InstanceId as! String, request as! ListAlternativeSnapshotReposRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listApmWithOptions(_ request: ListApmRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListApmResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.description_)) { query["description"] = request.description_ ?? ""; } if (!TeaUtils.Client.isUnset(request.instanceId)) { query["instanceId"] = request.instanceId ?? ""; } if (!TeaUtils.Client.isUnset(request.output)) { query["output"] = request.output ?? ""; } if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page!; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListApm", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/apm", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListApmResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listApm(_ request: ListApmRequest) async throws -> ListApmResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listApmWithOptions(request as! ListApmRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listAvailableEsInstanceIdsWithOptions(_ InstanceId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListAvailableEsInstanceIdsResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListAvailableEsInstanceIds", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/available-elasticsearch-for-centralized-management", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListAvailableEsInstanceIdsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listAvailableEsInstanceIds(_ InstanceId: String) async throws -> ListAvailableEsInstanceIdsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listAvailableEsInstanceIdsWithOptions(InstanceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listCollectorsWithOptions(_ request: ListCollectorsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListCollectorsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.instanceId)) { query["instanceId"] = request.instanceId ?? ""; } if (!TeaUtils.Client.isUnset(request.name)) { query["name"] = request.name ?? ""; } if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page!; } if (!TeaUtils.Client.isUnset(request.resId)) { query["resId"] = request.resId ?? ""; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } if (!TeaUtils.Client.isUnset(request.sourceType)) { query["sourceType"] = request.sourceType ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListCollectors", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/collectors", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListCollectorsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listCollectors(_ request: ListCollectorsRequest) async throws -> ListCollectorsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listCollectorsWithOptions(request as! ListCollectorsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listComponentIndicesWithOptions(_ InstanceId: String, _ request: ListComponentIndicesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListComponentIndicesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.name)) { query["name"] = request.name ?? ""; } if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page!; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListComponentIndices", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/component-index", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListComponentIndicesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listComponentIndices(_ InstanceId: String, _ request: ListComponentIndicesRequest) async throws -> ListComponentIndicesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listComponentIndicesWithOptions(InstanceId as! String, request as! ListComponentIndicesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listConnectedClustersWithOptions(_ InstanceId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListConnectedClustersResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListConnectedClusters", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/connected-clusters", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListConnectedClustersResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listConnectedClusters(_ InstanceId: String) async throws -> ListConnectedClustersResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listConnectedClustersWithOptions(InstanceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listDataStreamsWithOptions(_ InstanceId: String, _ request: ListDataStreamsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListDataStreamsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.isManaged)) { query["isManaged"] = request.isManaged!; } if (!TeaUtils.Client.isUnset(request.name)) { query["name"] = request.name ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListDataStreams", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/data-streams", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListDataStreamsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listDataStreams(_ InstanceId: String, _ request: ListDataStreamsRequest) async throws -> ListDataStreamsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listDataStreamsWithOptions(InstanceId as! String, request as! ListDataStreamsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listDataTasksWithOptions(_ InstanceId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListDataTasksResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListDataTasks", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/data-task", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListDataTasksResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listDataTasks(_ InstanceId: String) async throws -> ListDataTasksResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listDataTasksWithOptions(InstanceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listDefaultCollectorConfigurationsWithOptions(_ request: ListDefaultCollectorConfigurationsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListDefaultCollectorConfigurationsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.resType)) { query["resType"] = request.resType ?? ""; } if (!TeaUtils.Client.isUnset(request.resVersion)) { query["resVersion"] = request.resVersion ?? ""; } if (!TeaUtils.Client.isUnset(request.sourceType)) { query["sourceType"] = request.sourceType ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListDefaultCollectorConfigurations", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/beats/default-configurations", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListDefaultCollectorConfigurationsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listDefaultCollectorConfigurations(_ request: ListDefaultCollectorConfigurationsRequest) async throws -> ListDefaultCollectorConfigurationsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listDefaultCollectorConfigurationsWithOptions(request as! ListDefaultCollectorConfigurationsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listDeprecatedTemplatesWithOptions(_ InstanceId: String, _ request: ListDeprecatedTemplatesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListDeprecatedTemplatesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.name)) { query["name"] = request.name ?? ""; } if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page!; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListDeprecatedTemplates", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/deprecated-templates", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListDeprecatedTemplatesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listDeprecatedTemplates(_ InstanceId: String, _ request: ListDeprecatedTemplatesRequest) async throws -> ListDeprecatedTemplatesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listDeprecatedTemplatesWithOptions(InstanceId as! String, request as! ListDeprecatedTemplatesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listDiagnoseIndicesWithOptions(_ InstanceId: String, _ request: ListDiagnoseIndicesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListDiagnoseIndicesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.lang)) { query["lang"] = request.lang ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListDiagnoseIndices", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/diagnosis/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/indices", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListDiagnoseIndicesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listDiagnoseIndices(_ InstanceId: String, _ request: ListDiagnoseIndicesRequest) async throws -> ListDiagnoseIndicesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listDiagnoseIndicesWithOptions(InstanceId as! String, request as! ListDiagnoseIndicesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listDiagnoseReportWithOptions(_ InstanceId: String, _ request: ListDiagnoseReportRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListDiagnoseReportResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.detail)) { query["detail"] = request.detail!; } if (!TeaUtils.Client.isUnset(request.endTime)) { query["endTime"] = request.endTime!; } if (!TeaUtils.Client.isUnset(request.lang)) { query["lang"] = request.lang ?? ""; } if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page!; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } if (!TeaUtils.Client.isUnset(request.startTime)) { query["startTime"] = request.startTime!; } if (!TeaUtils.Client.isUnset(request.trigger)) { query["trigger"] = request.trigger ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListDiagnoseReport", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/diagnosis/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/reports", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListDiagnoseReportResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listDiagnoseReport(_ InstanceId: String, _ request: ListDiagnoseReportRequest) async throws -> ListDiagnoseReportResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listDiagnoseReportWithOptions(InstanceId as! String, request as! ListDiagnoseReportRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listDiagnoseReportIdsWithOptions(_ InstanceId: String, _ request: ListDiagnoseReportIdsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListDiagnoseReportIdsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.endTime)) { query["endTime"] = request.endTime!; } if (!TeaUtils.Client.isUnset(request.lang)) { query["lang"] = request.lang ?? ""; } if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page!; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } if (!TeaUtils.Client.isUnset(request.startTime)) { query["startTime"] = request.startTime!; } if (!TeaUtils.Client.isUnset(request.trigger)) { query["trigger"] = request.trigger ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListDiagnoseReportIds", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/diagnosis/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/report-ids", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListDiagnoseReportIdsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listDiagnoseReportIds(_ InstanceId: String, _ request: ListDiagnoseReportIdsRequest) async throws -> ListDiagnoseReportIdsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listDiagnoseReportIdsWithOptions(InstanceId as! String, request as! ListDiagnoseReportIdsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listDiagnosisItemsWithOptions(_ request: ListDiagnosisItemsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListDiagnosisItemsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.lang)) { query["lang"] = request.lang ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListDiagnosisItems", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/diagnosis/items", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListDiagnosisItemsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listDiagnosisItems(_ request: ListDiagnosisItemsRequest) async throws -> ListDiagnosisItemsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listDiagnosisItemsWithOptions(request as! ListDiagnosisItemsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listDictInformationWithOptions(_ InstanceId: String, _ request: ListDictInformationRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListDictInformationResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.analyzerType)) { query["analyzerType"] = request.analyzerType ?? ""; } if (!TeaUtils.Client.isUnset(request.bucketName)) { query["bucketName"] = request.bucketName ?? ""; } if (!TeaUtils.Client.isUnset(request.key)) { query["key"] = request.key ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListDictInformation", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/dict/_info", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListDictInformationResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listDictInformation(_ InstanceId: String, _ request: ListDictInformationRequest) async throws -> ListDictInformationResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listDictInformationWithOptions(InstanceId as! String, request as! ListDictInformationRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listDictsWithOptions(_ InstanceId: String, _ request: ListDictsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListDictsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.analyzerType)) { query["analyzerType"] = request.analyzerType ?? ""; } if (!TeaUtils.Client.isUnset(request.name)) { query["name"] = request.name ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListDicts", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/dicts", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListDictsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listDicts(_ InstanceId: String, _ request: ListDictsRequest) async throws -> ListDictsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listDictsWithOptions(InstanceId as! String, request as! ListDictsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listEcsInstancesWithOptions(_ request: ListEcsInstancesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListEcsInstancesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.ecsInstanceIds)) { query["ecsInstanceIds"] = request.ecsInstanceIds ?? ""; } if (!TeaUtils.Client.isUnset(request.ecsInstanceName)) { query["ecsInstanceName"] = request.ecsInstanceName ?? ""; } if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page!; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } if (!TeaUtils.Client.isUnset(request.tags)) { query["tags"] = request.tags ?? ""; } if (!TeaUtils.Client.isUnset(request.vpcId)) { query["vpcId"] = request.vpcId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListEcsInstances", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/ecs", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListEcsInstancesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listEcsInstances(_ request: ListEcsInstancesRequest) async throws -> ListEcsInstancesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listEcsInstancesWithOptions(request as! ListEcsInstancesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listExtendfilesWithOptions(_ InstanceId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListExtendfilesResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListExtendfiles", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/extendfiles", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListExtendfilesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listExtendfiles(_ InstanceId: String) async throws -> ListExtendfilesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listExtendfilesWithOptions(InstanceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listILMPoliciesWithOptions(_ InstanceId: String, _ request: ListILMPoliciesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListILMPoliciesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.policyName)) { query["policyName"] = request.policyName ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListILMPolicies", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/ilm-policies", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListILMPoliciesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listILMPolicies(_ InstanceId: String, _ request: ListILMPoliciesRequest) async throws -> ListILMPoliciesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listILMPoliciesWithOptions(InstanceId as! String, request as! ListILMPoliciesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listIndexTemplatesWithOptions(_ InstanceId: String, _ request: ListIndexTemplatesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListIndexTemplatesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.indexTemplate)) { query["indexTemplate"] = request.indexTemplate ?? ""; } if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page!; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListIndexTemplates", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/index-templates", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListIndexTemplatesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listIndexTemplates(_ InstanceId: String, _ request: ListIndexTemplatesRequest) async throws -> ListIndexTemplatesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listIndexTemplatesWithOptions(InstanceId as! String, request as! ListIndexTemplatesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listInstanceWithOptions(_ request: ListInstanceRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListInstanceResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.description_)) { query["description"] = request.description_ ?? ""; } if (!TeaUtils.Client.isUnset(request.esVersion)) { query["esVersion"] = request.esVersion ?? ""; } if (!TeaUtils.Client.isUnset(request.instanceCategory)) { query["instanceCategory"] = request.instanceCategory ?? ""; } if (!TeaUtils.Client.isUnset(request.instanceId)) { query["instanceId"] = request.instanceId ?? ""; } if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page!; } if (!TeaUtils.Client.isUnset(request.paymentType)) { query["paymentType"] = request.paymentType ?? ""; } if (!TeaUtils.Client.isUnset(request.resourceGroupId)) { query["resourceGroupId"] = request.resourceGroupId ?? ""; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } if (!TeaUtils.Client.isUnset(request.tags)) { query["tags"] = request.tags ?? ""; } if (!TeaUtils.Client.isUnset(request.vpcId)) { query["vpcId"] = request.vpcId ?? ""; } if (!TeaUtils.Client.isUnset(request.zoneId)) { query["zoneId"] = request.zoneId ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListInstance", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListInstanceResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listInstance(_ request: ListInstanceRequest) async throws -> ListInstanceResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listInstanceWithOptions(request as! ListInstanceRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listInstanceHistoryEventsWithOptions(_ tmpReq: ListInstanceHistoryEventsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListInstanceHistoryEventsResponse { try TeaUtils.Client.validateModel(tmpReq) var request: ListInstanceHistoryEventsShrinkRequest = ListInstanceHistoryEventsShrinkRequest([:]) AlibabaCloudOpenApiUtil.Client.convert(tmpReq, request) if (!TeaUtils.Client.isUnset(tmpReq.eventCycleStatus)) { request.eventCycleStatusShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.eventCycleStatus, "eventCycleStatus", "simple") } if (!TeaUtils.Client.isUnset(tmpReq.eventLevel)) { request.eventLevelShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.eventLevel, "eventLevel", "simple") } if (!TeaUtils.Client.isUnset(tmpReq.eventType)) { request.eventTypeShrink = AlibabaCloudOpenApiUtil.Client.arrayToStringWithSpecifiedStyle(tmpReq.eventType, "eventType", "simple") } var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.eventCreateEndTime)) { query["eventCreateEndTime"] = request.eventCreateEndTime ?? ""; } if (!TeaUtils.Client.isUnset(request.eventCreateStartTime)) { query["eventCreateStartTime"] = request.eventCreateStartTime ?? ""; } if (!TeaUtils.Client.isUnset(request.eventCycleStatusShrink)) { query["eventCycleStatus"] = request.eventCycleStatusShrink ?? ""; } if (!TeaUtils.Client.isUnset(request.eventExecuteEndTime)) { query["eventExecuteEndTime"] = request.eventExecuteEndTime ?? ""; } if (!TeaUtils.Client.isUnset(request.eventExecuteStartTime)) { query["eventExecuteStartTime"] = request.eventExecuteStartTime ?? ""; } if (!TeaUtils.Client.isUnset(request.eventFinashEndTime)) { query["eventFinashEndTime"] = request.eventFinashEndTime ?? ""; } if (!TeaUtils.Client.isUnset(request.eventFinashStartTime)) { query["eventFinashStartTime"] = request.eventFinashStartTime ?? ""; } if (!TeaUtils.Client.isUnset(request.eventLevelShrink)) { query["eventLevel"] = request.eventLevelShrink ?? ""; } if (!TeaUtils.Client.isUnset(request.eventTypeShrink)) { query["eventType"] = request.eventTypeShrink ?? ""; } if (!TeaUtils.Client.isUnset(request.instanceId)) { query["instanceId"] = request.instanceId ?? ""; } if (!TeaUtils.Client.isUnset(request.nodeIP)) { query["nodeIP"] = request.nodeIP ?? ""; } if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page!; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": TeaUtils.Client.toArray(request.body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListInstanceHistoryEvents", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/events", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListInstanceHistoryEventsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listInstanceHistoryEvents(_ request: ListInstanceHistoryEventsRequest) async throws -> ListInstanceHistoryEventsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listInstanceHistoryEventsWithOptions(request as! ListInstanceHistoryEventsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listInstanceIndicesWithOptions(_ InstanceId: String, _ request: ListInstanceIndicesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListInstanceIndicesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.all)) { query["all"] = request.all!; } if (!TeaUtils.Client.isUnset(request.isManaged)) { query["isManaged"] = request.isManaged!; } if (!TeaUtils.Client.isUnset(request.isOpenstore)) { query["isOpenstore"] = request.isOpenstore!; } if (!TeaUtils.Client.isUnset(request.name)) { query["name"] = request.name ?? ""; } if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page!; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListInstanceIndices", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/indices", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListInstanceIndicesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listInstanceIndices(_ InstanceId: String, _ request: ListInstanceIndicesRequest) async throws -> ListInstanceIndicesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listInstanceIndicesWithOptions(InstanceId as! String, request as! ListInstanceIndicesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listKibanaPluginsWithOptions(_ InstanceId: String, _ request: ListKibanaPluginsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListKibanaPluginsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page ?? ""; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListKibanaPlugins", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/kibana-plugins", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListKibanaPluginsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listKibanaPlugins(_ InstanceId: String, _ request: ListKibanaPluginsRequest) async throws -> ListKibanaPluginsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listKibanaPluginsWithOptions(InstanceId as! String, request as! ListKibanaPluginsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listKibanaPvlNetworkWithOptions(_ InstanceId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListKibanaPvlNetworkResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListKibanaPvlNetwork", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/get-kibana-private", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListKibanaPvlNetworkResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listKibanaPvlNetwork(_ InstanceId: String) async throws -> ListKibanaPvlNetworkResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listKibanaPvlNetworkWithOptions(InstanceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listLogstashWithOptions(_ request: ListLogstashRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListLogstashResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.description_)) { query["description"] = request.description_ ?? ""; } if (!TeaUtils.Client.isUnset(request.instanceId)) { query["instanceId"] = request.instanceId ?? ""; } if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page!; } if (!TeaUtils.Client.isUnset(request.resourceGroupId)) { query["resourceGroupId"] = request.resourceGroupId ?? ""; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } if (!TeaUtils.Client.isUnset(request.tags)) { query["tags"] = request.tags ?? ""; } if (!TeaUtils.Client.isUnset(request.version)) { query["version"] = request.version ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListLogstash", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListLogstashResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listLogstash(_ request: ListLogstashRequest) async throws -> ListLogstashResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listLogstashWithOptions(request as! ListLogstashRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listLogstashLogWithOptions(_ InstanceId: String, _ request: ListLogstashLogRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListLogstashLogResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.beginTime)) { query["beginTime"] = request.beginTime!; } if (!TeaUtils.Client.isUnset(request.endTime)) { query["endTime"] = request.endTime!; } if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page!; } if (!TeaUtils.Client.isUnset(request.query)) { query["query"] = request.query ?? ""; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } if (!TeaUtils.Client.isUnset(request.type)) { query["type"] = request.type ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListLogstashLog", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/search-log", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListLogstashLogResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listLogstashLog(_ InstanceId: String, _ request: ListLogstashLogRequest) async throws -> ListLogstashLogResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listLogstashLogWithOptions(InstanceId as! String, request as! ListLogstashLogRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listLogstashPluginsWithOptions(_ InstanceId: String, _ request: ListLogstashPluginsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListLogstashPluginsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.name)) { query["name"] = request.name ?? ""; } if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page!; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } if (!TeaUtils.Client.isUnset(request.source)) { query["source"] = request.source ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListLogstashPlugins", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/plugins", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListLogstashPluginsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listLogstashPlugins(_ InstanceId: String, _ request: ListLogstashPluginsRequest) async throws -> ListLogstashPluginsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listLogstashPluginsWithOptions(InstanceId as! String, request as! ListLogstashPluginsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listNodesWithOptions(_ ResId: String, _ request: ListNodesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListNodesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.ecsInstanceIds)) { query["ecsInstanceIds"] = request.ecsInstanceIds ?? ""; } if (!TeaUtils.Client.isUnset(request.ecsInstanceName)) { query["ecsInstanceName"] = request.ecsInstanceName ?? ""; } if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page!; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } if (!TeaUtils.Client.isUnset(request.tags)) { query["tags"] = request.tags ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListNodes", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/collectors/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(ResId)) + "/nodes", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListNodesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listNodes(_ ResId: String, _ request: ListNodesRequest) async throws -> ListNodesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listNodesWithOptions(ResId as! String, request as! ListNodesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listPipelineWithOptions(_ InstanceId: String, _ request: ListPipelineRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListPipelineResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page!; } if (!TeaUtils.Client.isUnset(request.pipelineId)) { query["pipelineId"] = request.pipelineId ?? ""; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListPipeline", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/pipelines", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListPipelineResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listPipeline(_ InstanceId: String, _ request: ListPipelineRequest) async throws -> ListPipelineResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listPipelineWithOptions(InstanceId as! String, request as! ListPipelineRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listPipelineIdsWithOptions(_ InstanceId: String, _ request: ListPipelineIdsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListPipelineIdsResponse { try TeaUtils.Client.validateModel(request) var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListPipelineIds", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/pipeline-ids", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListPipelineIdsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listPipelineIds(_ InstanceId: String, _ request: ListPipelineIdsRequest) async throws -> ListPipelineIdsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listPipelineIdsWithOptions(InstanceId as! String, request as! ListPipelineIdsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listPluginsWithOptions(_ InstanceId: String, _ request: ListPluginsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListPluginsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.name)) { query["name"] = request.name ?? ""; } if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page ?? ""; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } if (!TeaUtils.Client.isUnset(request.source)) { query["source"] = request.source ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListPlugins", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/plugins", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListPluginsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listPlugins(_ InstanceId: String, _ request: ListPluginsRequest) async throws -> ListPluginsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listPluginsWithOptions(InstanceId as! String, request as! ListPluginsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listSearchLogWithOptions(_ InstanceId: String, _ request: ListSearchLogRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListSearchLogResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.beginTime)) { query["beginTime"] = request.beginTime!; } if (!TeaUtils.Client.isUnset(request.endTime)) { query["endTime"] = request.endTime!; } if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page!; } if (!TeaUtils.Client.isUnset(request.query)) { query["query"] = request.query ?? ""; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } if (!TeaUtils.Client.isUnset(request.type)) { query["type"] = request.type ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListSearchLog", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/search-log", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListSearchLogResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listSearchLog(_ InstanceId: String, _ request: ListSearchLogRequest) async throws -> ListSearchLogResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listSearchLogWithOptions(InstanceId as! String, request as! ListSearchLogRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listShardRecoveriesWithOptions(_ InstanceId: String, _ request: ListShardRecoveriesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListShardRecoveriesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.activeOnly)) { query["activeOnly"] = request.activeOnly!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListShardRecoveries", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/cat-recovery", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListShardRecoveriesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listShardRecoveries(_ InstanceId: String, _ request: ListShardRecoveriesRequest) async throws -> ListShardRecoveriesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listShardRecoveriesWithOptions(InstanceId as! String, request as! ListShardRecoveriesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listSnapshotReposByInstanceIdWithOptions(_ InstanceId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListSnapshotReposByInstanceIdResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListSnapshotReposByInstanceId", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/snapshot-repos", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListSnapshotReposByInstanceIdResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listSnapshotReposByInstanceId(_ InstanceId: String) async throws -> ListSnapshotReposByInstanceIdResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listSnapshotReposByInstanceIdWithOptions(InstanceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listTagResourcesWithOptions(_ request: ListTagResourcesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListTagResourcesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.nextToken)) { query["NextToken"] = request.nextToken ?? ""; } if (!TeaUtils.Client.isUnset(request.page)) { query["Page"] = request.page!; } if (!TeaUtils.Client.isUnset(request.resourceIds)) { query["ResourceIds"] = request.resourceIds ?? ""; } if (!TeaUtils.Client.isUnset(request.resourceType)) { query["ResourceType"] = request.resourceType ?? ""; } if (!TeaUtils.Client.isUnset(request.size)) { query["Size"] = request.size!; } if (!TeaUtils.Client.isUnset(request.tags)) { query["Tags"] = request.tags ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListTagResources", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/tags", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListTagResourcesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listTagResources(_ request: ListTagResourcesRequest) async throws -> ListTagResourcesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listTagResourcesWithOptions(request as! ListTagResourcesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listTagsWithOptions(_ request: ListTagsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListTagsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.pageSize)) { query["pageSize"] = request.pageSize!; } if (!TeaUtils.Client.isUnset(request.resourceType)) { query["resourceType"] = request.resourceType ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListTags", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/tags/all-tags", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListTagsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listTags(_ request: ListTagsRequest) async throws -> ListTagsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listTagsWithOptions(request as! ListTagsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listVpcEndpointsWithOptions(_ InstanceId: String, _ request: ListVpcEndpointsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ListVpcEndpointsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.page)) { query["page"] = request.page!; } if (!TeaUtils.Client.isUnset(request.size)) { query["size"] = request.size!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ListVpcEndpoints", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/vpc-endpoints", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ListVpcEndpointsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func listVpcEndpoints(_ InstanceId: String, _ request: ListVpcEndpointsRequest) async throws -> ListVpcEndpointsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await listVpcEndpointsWithOptions(InstanceId as! String, request as! ListVpcEndpointsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func migrateToOtherZoneWithOptions(_ InstanceId: String, _ request: MigrateToOtherZoneRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> MigrateToOtherZoneResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.dryRun)) { query["dryRun"] = request.dryRun!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "MigrateToOtherZone", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/migrate-zones", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(MigrateToOtherZoneResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func migrateToOtherZone(_ InstanceId: String, _ request: MigrateToOtherZoneRequest) async throws -> MigrateToOtherZoneResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await migrateToOtherZoneWithOptions(InstanceId as! String, request as! MigrateToOtherZoneRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func modifyDeployMachineWithOptions(_ ResId: String, _ request: ModifyDeployMachineRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ModifyDeployMachineResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ModifyDeployMachine", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/collectors/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(ResId)) + "/actions/modify-deploy-machines", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ModifyDeployMachineResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func modifyDeployMachine(_ ResId: String, _ request: ModifyDeployMachineRequest) async throws -> ModifyDeployMachineResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await modifyDeployMachineWithOptions(ResId as! String, request as! ModifyDeployMachineRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func modifyElastictaskWithOptions(_ InstanceId: String, _ request: ModifyElastictaskRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ModifyElastictaskResponse { try TeaUtils.Client.validateModel(request) var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ModifyElastictask", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/elastic-task", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ModifyElastictaskResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func modifyElastictask(_ InstanceId: String, _ request: ModifyElastictaskRequest) async throws -> ModifyElastictaskResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await modifyElastictaskWithOptions(InstanceId as! String, request as! ModifyElastictaskRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func modifyInstanceMaintainTimeWithOptions(_ InstanceId: String, _ request: ModifyInstanceMaintainTimeRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ModifyInstanceMaintainTimeResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ModifyInstanceMaintainTime", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/modify-maintaintime", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ModifyInstanceMaintainTimeResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func modifyInstanceMaintainTime(_ InstanceId: String, _ request: ModifyInstanceMaintainTimeRequest) async throws -> ModifyInstanceMaintainTimeResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await modifyInstanceMaintainTimeWithOptions(InstanceId as! String, request as! ModifyInstanceMaintainTimeRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func modifyWhiteIpsWithOptions(_ InstanceId: String, _ request: ModifyWhiteIpsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ModifyWhiteIpsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.modifyMode)) { body["modifyMode"] = request.modifyMode ?? ""; } if (!TeaUtils.Client.isUnset(request.networkType)) { body["networkType"] = request.networkType ?? ""; } if (!TeaUtils.Client.isUnset(request.nodeType)) { body["nodeType"] = request.nodeType ?? ""; } if (!TeaUtils.Client.isUnset(request.whiteIpGroup)) { body["whiteIpGroup"] = request.whiteIpGroup!; } if (!TeaUtils.Client.isUnset(request.whiteIpList)) { body["whiteIpList"] = request.whiteIpList ?? []; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ModifyWhiteIps", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/modify-white-ips", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ModifyWhiteIpsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func modifyWhiteIps(_ InstanceId: String, _ request: ModifyWhiteIpsRequest) async throws -> ModifyWhiteIpsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await modifyWhiteIpsWithOptions(InstanceId as! String, request as! ModifyWhiteIpsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func moveResourceGroupWithOptions(_ InstanceId: String, _ request: MoveResourceGroupRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> MoveResourceGroupResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "MoveResourceGroup", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/resourcegroup", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(MoveResourceGroupResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func moveResourceGroup(_ InstanceId: String, _ request: MoveResourceGroupRequest) async throws -> MoveResourceGroupResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await moveResourceGroupWithOptions(InstanceId as! String, request as! MoveResourceGroupRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func openDiagnosisWithOptions(_ InstanceId: String, _ request: OpenDiagnosisRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> OpenDiagnosisResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.lang)) { query["lang"] = request.lang ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "OpenDiagnosis", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/diagnosis/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/open-diagnosis", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(OpenDiagnosisResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func openDiagnosis(_ InstanceId: String, _ request: OpenDiagnosisRequest) async throws -> OpenDiagnosisResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await openDiagnosisWithOptions(InstanceId as! String, request as! OpenDiagnosisRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func openHttpsWithOptions(_ InstanceId: String, _ request: OpenHttpsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> OpenHttpsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "OpenHttps", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/open-https", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(OpenHttpsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func openHttps(_ InstanceId: String, _ request: OpenHttpsRequest) async throws -> OpenHttpsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await openHttpsWithOptions(InstanceId as! String, request as! OpenHttpsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func postEmonTryAlarmRuleWithOptions(_ ProjectId: String, _ AlarmGroupId: String, _ request: PostEmonTryAlarmRuleRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> PostEmonTryAlarmRuleResponse { try TeaUtils.Client.validateModel(request) var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "PostEmonTryAlarmRule", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/emon/projects/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(ProjectId)) + "/alarm-groups/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(AlarmGroupId)) + "/alarm-rules/_test", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(PostEmonTryAlarmRuleResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func postEmonTryAlarmRule(_ ProjectId: String, _ AlarmGroupId: String, _ request: PostEmonTryAlarmRuleRequest) async throws -> PostEmonTryAlarmRuleResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await postEmonTryAlarmRuleWithOptions(ProjectId as! String, AlarmGroupId as! String, request as! PostEmonTryAlarmRuleRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func recommendTemplatesWithOptions(_ InstanceId: String, _ request: RecommendTemplatesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> RecommendTemplatesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.usageScenario)) { query["usageScenario"] = request.usageScenario ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "RecommendTemplates", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/recommended-templates", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(RecommendTemplatesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func recommendTemplates(_ InstanceId: String, _ request: RecommendTemplatesRequest) async throws -> RecommendTemplatesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await recommendTemplatesWithOptions(InstanceId as! String, request as! RecommendTemplatesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func reinstallCollectorWithOptions(_ ResId: String, _ request: ReinstallCollectorRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ReinstallCollectorResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ReinstallCollector", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/collectors/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(ResId)) + "/actions/reinstall", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ReinstallCollectorResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func reinstallCollector(_ ResId: String, _ request: ReinstallCollectorRequest) async throws -> ReinstallCollectorResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await reinstallCollectorWithOptions(ResId as! String, request as! ReinstallCollectorRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func removeApmWithOptions(_ instanceId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> RemoveApmResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "RemoveApm", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/apm/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(instanceId)), "method": "DELETE", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(RemoveApmResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func removeApm(_ instanceId: String) async throws -> RemoveApmResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await removeApmWithOptions(instanceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func renewInstanceWithOptions(_ InstanceId: String, _ request: RenewInstanceRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> RenewInstanceResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "RenewInstance", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/renew", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(RenewInstanceResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func renewInstance(_ InstanceId: String, _ request: RenewInstanceRequest) async throws -> RenewInstanceResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await renewInstanceWithOptions(InstanceId as! String, request as! RenewInstanceRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func renewLogstashWithOptions(_ InstanceId: String, _ request: RenewLogstashRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> RenewLogstashResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "RenewLogstash", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/renew", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(RenewLogstashResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func renewLogstash(_ InstanceId: String, _ request: RenewLogstashRequest) async throws -> RenewLogstashResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await renewLogstashWithOptions(InstanceId as! String, request as! RenewLogstashRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func restartCollectorWithOptions(_ ResId: String, _ request: RestartCollectorRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> RestartCollectorResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "RestartCollector", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/collectors/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(ResId)) + "/actions/restart", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(RestartCollectorResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func restartCollector(_ ResId: String, _ request: RestartCollectorRequest) async throws -> RestartCollectorResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await restartCollectorWithOptions(ResId as! String, request as! RestartCollectorRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func restartInstanceWithOptions(_ InstanceId: String, _ request: RestartInstanceRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> RestartInstanceResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.force)) { query["force"] = request.force!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "RestartInstance", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/restart", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(RestartInstanceResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func restartInstance(_ InstanceId: String, _ request: RestartInstanceRequest) async throws -> RestartInstanceResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await restartInstanceWithOptions(InstanceId as! String, request as! RestartInstanceRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func restartLogstashWithOptions(_ InstanceId: String, _ request: RestartLogstashRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> RestartLogstashResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.force)) { query["force"] = request.force!; } var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.batchCount)) { body["batchCount"] = request.batchCount!; } if (!TeaUtils.Client.isUnset(request.blueGreenDep)) { body["blueGreenDep"] = request.blueGreenDep!; } if (!TeaUtils.Client.isUnset(request.nodeTypes)) { body["nodeTypes"] = request.nodeTypes ?? []; } if (!TeaUtils.Client.isUnset(request.nodes)) { body["nodes"] = request.nodes ?? []; } if (!TeaUtils.Client.isUnset(request.restartType)) { body["restartType"] = request.restartType ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "RestartLogstash", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/restart", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(RestartLogstashResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func restartLogstash(_ InstanceId: String, _ request: RestartLogstashRequest) async throws -> RestartLogstashResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await restartLogstashWithOptions(InstanceId as! String, request as! RestartLogstashRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func resumeElasticsearchTaskWithOptions(_ InstanceId: String, _ request: ResumeElasticsearchTaskRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ResumeElasticsearchTaskResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ResumeElasticsearchTask", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/resume", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ResumeElasticsearchTaskResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func resumeElasticsearchTask(_ InstanceId: String, _ request: ResumeElasticsearchTaskRequest) async throws -> ResumeElasticsearchTaskResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await resumeElasticsearchTaskWithOptions(InstanceId as! String, request as! ResumeElasticsearchTaskRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func resumeLogstashTaskWithOptions(_ InstanceId: String, _ request: ResumeLogstashTaskRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ResumeLogstashTaskResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ResumeLogstashTask", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/resume", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ResumeLogstashTaskResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func resumeLogstashTask(_ InstanceId: String, _ request: ResumeLogstashTaskRequest) async throws -> ResumeLogstashTaskResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await resumeLogstashTaskWithOptions(InstanceId as! String, request as! ResumeLogstashTaskRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func rolloverDataStreamWithOptions(_ InstanceId: String, _ DataStream: String, _ request: RolloverDataStreamRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> RolloverDataStreamResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "RolloverDataStream", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/data-streams/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(DataStream)) + "/rollover", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(RolloverDataStreamResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func rolloverDataStream(_ InstanceId: String, _ DataStream: String, _ request: RolloverDataStreamRequest) async throws -> RolloverDataStreamResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await rolloverDataStreamWithOptions(InstanceId as! String, DataStream as! String, request as! RolloverDataStreamRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func runPipelinesWithOptions(_ InstanceId: String, _ request: RunPipelinesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> RunPipelinesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "RunPipelines", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/pipelines/action/run", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(RunPipelinesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func runPipelines(_ InstanceId: String, _ request: RunPipelinesRequest) async throws -> RunPipelinesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await runPipelinesWithOptions(InstanceId as! String, request as! RunPipelinesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func shrinkNodeWithOptions(_ InstanceId: String, _ request: ShrinkNodeRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ShrinkNodeResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.count)) { query["count"] = request.count!; } if (!TeaUtils.Client.isUnset(request.ignoreStatus)) { query["ignoreStatus"] = request.ignoreStatus!; } if (!TeaUtils.Client.isUnset(request.nodeType)) { query["nodeType"] = request.nodeType ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": TeaUtils.Client.toArray(request.body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ShrinkNode", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/shrink", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ShrinkNodeResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func shrinkNode(_ InstanceId: String, _ request: ShrinkNodeRequest) async throws -> ShrinkNodeResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await shrinkNodeWithOptions(InstanceId as! String, request as! ShrinkNodeRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func startApmWithOptions(_ instanceId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> StartApmResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "StartApm", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/apm/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(instanceId)) + "/actions/start", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(StartApmResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func startApm(_ instanceId: String) async throws -> StartApmResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await startApmWithOptions(instanceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func startCollectorWithOptions(_ ResId: String, _ request: StartCollectorRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> StartCollectorResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "StartCollector", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/collectors/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(ResId)) + "/actions/start", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(StartCollectorResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func startCollector(_ ResId: String, _ request: StartCollectorRequest) async throws -> StartCollectorResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await startCollectorWithOptions(ResId as! String, request as! StartCollectorRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func stopApmWithOptions(_ instanceId: String, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> StopApmResponse { var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "StopApm", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/apm/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(instanceId)) + "/actions/stop", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(StopApmResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func stopApm(_ instanceId: String) async throws -> StopApmResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await stopApmWithOptions(instanceId as! String, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func stopCollectorWithOptions(_ ResId: String, _ request: StopCollectorRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> StopCollectorResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "StopCollector", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/collectors/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(ResId)) + "/actions/stop", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(StopCollectorResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func stopCollector(_ ResId: String, _ request: StopCollectorRequest) async throws -> StopCollectorResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await stopCollectorWithOptions(ResId as! String, request as! StopCollectorRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func stopPipelinesWithOptions(_ InstanceId: String, _ request: StopPipelinesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> StopPipelinesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "StopPipelines", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/pipelines/action/stop", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(StopPipelinesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func stopPipelines(_ InstanceId: String, _ request: StopPipelinesRequest) async throws -> StopPipelinesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await stopPipelinesWithOptions(InstanceId as! String, request as! StopPipelinesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func tagResourcesWithOptions(_ request: TagResourcesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> TagResourcesResponse { try TeaUtils.Client.validateModel(request) var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.resourceIds)) { body["ResourceIds"] = request.resourceIds ?? []; } if (!TeaUtils.Client.isUnset(request.resourceType)) { body["ResourceType"] = request.resourceType ?? ""; } if (!TeaUtils.Client.isUnset(request.tags)) { body["Tags"] = request.tags ?? []; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "TagResources", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/tags", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(TagResourcesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func tagResources(_ request: TagResourcesRequest) async throws -> TagResourcesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await tagResourcesWithOptions(request as! TagResourcesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func transferNodeWithOptions(_ InstanceId: String, _ request: TransferNodeRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> TransferNodeResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.nodeType)) { query["nodeType"] = request.nodeType ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": TeaUtils.Client.toArray(request.body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "TransferNode", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/transfer", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(TransferNodeResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func transferNode(_ InstanceId: String, _ request: TransferNodeRequest) async throws -> TransferNodeResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await transferNodeWithOptions(InstanceId as! String, request as! TransferNodeRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func triggerNetworkWithOptions(_ InstanceId: String, _ request: TriggerNetworkRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> TriggerNetworkResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.actionType)) { body["actionType"] = request.actionType ?? ""; } if (!TeaUtils.Client.isUnset(request.networkType)) { body["networkType"] = request.networkType ?? ""; } if (!TeaUtils.Client.isUnset(request.nodeType)) { body["nodeType"] = request.nodeType ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "TriggerNetwork", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/network-trigger", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(TriggerNetworkResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func triggerNetwork(_ InstanceId: String, _ request: TriggerNetworkRequest) async throws -> TriggerNetworkResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await triggerNetworkWithOptions(InstanceId as! String, request as! TriggerNetworkRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func uninstallKibanaPluginWithOptions(_ InstanceId: String, _ request: UninstallKibanaPluginRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UninstallKibanaPluginResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UninstallKibanaPlugin", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/kibana-plugins/actions/uninstall", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UninstallKibanaPluginResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func uninstallKibanaPlugin(_ InstanceId: String, _ request: UninstallKibanaPluginRequest) async throws -> UninstallKibanaPluginResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await uninstallKibanaPluginWithOptions(InstanceId as! String, request as! UninstallKibanaPluginRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func uninstallLogstashPluginWithOptions(_ InstanceId: String, _ request: UninstallLogstashPluginRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UninstallLogstashPluginResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? [] ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UninstallLogstashPlugin", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/plugins/actions/uninstall", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UninstallLogstashPluginResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func uninstallLogstashPlugin(_ InstanceId: String, _ request: UninstallLogstashPluginRequest) async throws -> UninstallLogstashPluginResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await uninstallLogstashPluginWithOptions(InstanceId as! String, request as! UninstallLogstashPluginRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func uninstallPluginWithOptions(_ InstanceId: String, _ request: UninstallPluginRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UninstallPluginResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.force)) { query["force"] = request.force!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UninstallPlugin", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/plugins/actions/uninstall", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UninstallPluginResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func uninstallPlugin(_ InstanceId: String, _ request: UninstallPluginRequest) async throws -> UninstallPluginResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await uninstallPluginWithOptions(InstanceId as! String, request as! UninstallPluginRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func untagResourcesWithOptions(_ request: UntagResourcesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UntagResourcesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.all)) { query["All"] = request.all!; } if (!TeaUtils.Client.isUnset(request.resourceIds)) { query["ResourceIds"] = request.resourceIds ?? ""; } if (!TeaUtils.Client.isUnset(request.resourceType)) { query["ResourceType"] = request.resourceType ?? ""; } if (!TeaUtils.Client.isUnset(request.tagKeys)) { query["TagKeys"] = request.tagKeys ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UntagResources", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/tags", "method": "DELETE", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UntagResourcesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func untagResources(_ request: UntagResourcesRequest) async throws -> UntagResourcesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await untagResourcesWithOptions(request as! UntagResourcesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateAdminPasswordWithOptions(_ InstanceId: String, _ request: UpdateAdminPasswordRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateAdminPasswordResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.esAdminPassword)) { body["esAdminPassword"] = request.esAdminPassword ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateAdminPassword", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/admin-pwd", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateAdminPasswordResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateAdminPassword(_ InstanceId: String, _ request: UpdateAdminPasswordRequest) async throws -> UpdateAdminPasswordResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateAdminPasswordWithOptions(InstanceId as! String, request as! UpdateAdminPasswordRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateAdvancedSettingWithOptions(_ InstanceId: String, _ request: UpdateAdvancedSettingRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateAdvancedSettingResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateAdvancedSetting", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/update-advanced-setting", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateAdvancedSettingResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateAdvancedSetting(_ InstanceId: String, _ request: UpdateAdvancedSettingRequest) async throws -> UpdateAdvancedSettingResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateAdvancedSettingWithOptions(InstanceId as! String, request as! UpdateAdvancedSettingRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateAliwsDictWithOptions(_ InstanceId: String, _ request: UpdateAliwsDictRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateAliwsDictResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateAliwsDict", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/aliws-dict", "method": "PUT", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateAliwsDictResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateAliwsDict(_ InstanceId: String, _ request: UpdateAliwsDictRequest) async throws -> UpdateAliwsDictResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateAliwsDictWithOptions(InstanceId as! String, request as! UpdateAliwsDictRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateApmWithOptions(_ instanceId: String, _ request: UpdateApmRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateApmResponse { try TeaUtils.Client.validateModel(request) var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.description_)) { body["description"] = request.description_ ?? ""; } if (!TeaUtils.Client.isUnset(request.outputES)) { body["outputES"] = request.outputES ?? ""; } if (!TeaUtils.Client.isUnset(request.outputESPassword)) { body["outputESPassword"] = request.outputESPassword ?? ""; } if (!TeaUtils.Client.isUnset(request.outputESUserName)) { body["outputESUserName"] = request.outputESUserName ?? ""; } if (!TeaUtils.Client.isUnset(request.token)) { body["token"] = request.token ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateApm", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/apm/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(instanceId)), "method": "PUT", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateApmResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateApm(_ instanceId: String, _ request: UpdateApmRequest) async throws -> UpdateApmResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateApmWithOptions(instanceId as! String, request as! UpdateApmRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateBlackIpsWithOptions(_ InstanceId: String, _ request: UpdateBlackIpsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateBlackIpsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateBlackIps", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/black-ips", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateBlackIpsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateBlackIps(_ InstanceId: String, _ request: UpdateBlackIpsRequest) async throws -> UpdateBlackIpsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateBlackIpsWithOptions(InstanceId as! String, request as! UpdateBlackIpsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateCollectorWithOptions(_ ResId: String, _ request: UpdateCollectorRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateCollectorResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateCollector", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/collectors/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(ResId)), "method": "PUT", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateCollectorResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateCollector(_ ResId: String, _ request: UpdateCollectorRequest) async throws -> UpdateCollectorResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateCollectorWithOptions(ResId as! String, request as! UpdateCollectorRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateCollectorNameWithOptions(_ ResId: String, _ request: UpdateCollectorNameRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateCollectorNameResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateCollectorName", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/collectors/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(ResId)) + "/actions/rename", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateCollectorNameResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateCollectorName(_ ResId: String, _ request: UpdateCollectorNameRequest) async throws -> UpdateCollectorNameResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateCollectorNameWithOptions(ResId as! String, request as! UpdateCollectorNameRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateComponentIndexWithOptions(_ InstanceId: String, _ name: String, _ request: UpdateComponentIndexRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateComponentIndexResponse { try TeaUtils.Client.validateModel(request) var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.meta)) { body["_meta"] = request.meta ?? [:]; } if (!TeaUtils.Client.isUnset(request.template)) { body["template"] = request.template!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateComponentIndex", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/component-index/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(name)), "method": "PUT", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateComponentIndexResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateComponentIndex(_ InstanceId: String, _ name: String, _ request: UpdateComponentIndexRequest) async throws -> UpdateComponentIndexResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateComponentIndexWithOptions(InstanceId as! String, name as! String, request as! UpdateComponentIndexRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateDescriptionWithOptions(_ InstanceId: String, _ request: UpdateDescriptionRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateDescriptionResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.description_)) { body["description"] = request.description_ ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateDescription", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/description", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateDescriptionResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateDescription(_ InstanceId: String, _ request: UpdateDescriptionRequest) async throws -> UpdateDescriptionResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateDescriptionWithOptions(InstanceId as! String, request as! UpdateDescriptionRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateDiagnosisSettingsWithOptions(_ InstanceId: String, _ request: UpdateDiagnosisSettingsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateDiagnosisSettingsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.lang)) { query["lang"] = request.lang ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateDiagnosisSettings", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/diagnosis/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/settings", "method": "PUT", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateDiagnosisSettingsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateDiagnosisSettings(_ InstanceId: String, _ request: UpdateDiagnosisSettingsRequest) async throws -> UpdateDiagnosisSettingsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateDiagnosisSettingsWithOptions(InstanceId as! String, request as! UpdateDiagnosisSettingsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateDictWithOptions(_ InstanceId: String, _ request: UpdateDictRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateDictResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateDict", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/dict", "method": "PUT", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateDictResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateDict(_ InstanceId: String, _ request: UpdateDictRequest) async throws -> UpdateDictResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateDictWithOptions(InstanceId as! String, request as! UpdateDictRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateDynamicSettingsWithOptions(_ InstanceId: String, _ request: UpdateDynamicSettingsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateDynamicSettingsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.regionId)) { query["RegionId"] = request.regionId ?? ""; } if (!TeaUtils.Client.isUnset(request.mode)) { query["mode"] = request.mode ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateDynamicSettings", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/dynamic-settings", "method": "PUT", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateDynamicSettingsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateDynamicSettings(_ InstanceId: String, _ request: UpdateDynamicSettingsRequest) async throws -> UpdateDynamicSettingsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateDynamicSettingsWithOptions(InstanceId as! String, request as! UpdateDynamicSettingsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateExtendConfigWithOptions(_ InstanceId: String, _ request: UpdateExtendConfigRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateExtendConfigResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateExtendConfig", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/extend-configs/actions/update", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateExtendConfigResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateExtendConfig(_ InstanceId: String, _ request: UpdateExtendConfigRequest) async throws -> UpdateExtendConfigResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateExtendConfigWithOptions(InstanceId as! String, request as! UpdateExtendConfigRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateExtendfilesWithOptions(_ InstanceId: String, _ request: UpdateExtendfilesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateExtendfilesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateExtendfiles", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/extendfiles", "method": "PUT", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateExtendfilesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateExtendfiles(_ InstanceId: String, _ request: UpdateExtendfilesRequest) async throws -> UpdateExtendfilesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateExtendfilesWithOptions(InstanceId as! String, request as! UpdateExtendfilesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateHotIkDictsWithOptions(_ InstanceId: String, _ request: UpdateHotIkDictsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateHotIkDictsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateHotIkDicts", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/ik-hot-dict", "method": "PUT", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateHotIkDictsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateHotIkDicts(_ InstanceId: String, _ request: UpdateHotIkDictsRequest) async throws -> UpdateHotIkDictsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateHotIkDictsWithOptions(InstanceId as! String, request as! UpdateHotIkDictsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateILMPolicyWithOptions(_ InstanceId: String, _ PolicyName: String, _ request: UpdateILMPolicyRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateILMPolicyResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateILMPolicy", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/ilm-policies/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(PolicyName)), "method": "PUT", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateILMPolicyResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateILMPolicy(_ InstanceId: String, _ PolicyName: String, _ request: UpdateILMPolicyRequest) async throws -> UpdateILMPolicyResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateILMPolicyWithOptions(InstanceId as! String, PolicyName as! String, request as! UpdateILMPolicyRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateIndexTemplateWithOptions(_ InstanceId: String, _ IndexTemplate: String, _ request: UpdateIndexTemplateRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateIndexTemplateResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateIndexTemplate", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/index-templates/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(IndexTemplate)), "method": "PUT", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateIndexTemplateResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateIndexTemplate(_ InstanceId: String, _ IndexTemplate: String, _ request: UpdateIndexTemplateRequest) async throws -> UpdateIndexTemplateResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateIndexTemplateWithOptions(InstanceId as! String, IndexTemplate as! String, request as! UpdateIndexTemplateRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateInstanceWithOptions(_ InstanceId: String, _ request: UpdateInstanceRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateInstanceResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.force)) { query["force"] = request.force!; } if (!TeaUtils.Client.isUnset(request.orderActionType)) { query["orderActionType"] = request.orderActionType ?? ""; } var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientNodeConfiguration)) { body["clientNodeConfiguration"] = request.clientNodeConfiguration!; } if (!TeaUtils.Client.isUnset(request.elasticDataNodeConfiguration)) { body["elasticDataNodeConfiguration"] = request.elasticDataNodeConfiguration!; } if (!TeaUtils.Client.isUnset(request.instanceCategory)) { body["instanceCategory"] = request.instanceCategory ?? ""; } if (!TeaUtils.Client.isUnset(request.kibanaConfiguration)) { body["kibanaConfiguration"] = request.kibanaConfiguration!; } if (!TeaUtils.Client.isUnset(request.masterConfiguration)) { body["masterConfiguration"] = request.masterConfiguration!; } if (!TeaUtils.Client.isUnset(request.nodeAmount)) { body["nodeAmount"] = request.nodeAmount!; } if (!TeaUtils.Client.isUnset(request.nodeSpec)) { body["nodeSpec"] = request.nodeSpec!; } if (!TeaUtils.Client.isUnset(request.warmNodeConfiguration)) { body["warmNodeConfiguration"] = request.warmNodeConfiguration!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateInstance", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)), "method": "PUT", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateInstanceResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateInstance(_ InstanceId: String, _ request: UpdateInstanceRequest) async throws -> UpdateInstanceResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateInstanceWithOptions(InstanceId as! String, request as! UpdateInstanceRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateInstanceChargeTypeWithOptions(_ InstanceId: String, _ request: UpdateInstanceChargeTypeRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateInstanceChargeTypeResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateInstanceChargeType", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/convert-pay-type", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateInstanceChargeTypeResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateInstanceChargeType(_ InstanceId: String, _ request: UpdateInstanceChargeTypeRequest) async throws -> UpdateInstanceChargeTypeResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateInstanceChargeTypeWithOptions(InstanceId as! String, request as! UpdateInstanceChargeTypeRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateInstanceSettingsWithOptions(_ InstanceId: String, _ request: UpdateInstanceSettingsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateInstanceSettingsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.updateStrategy)) { query["updateStrategy"] = request.updateStrategy ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateInstanceSettings", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/instance-settings", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateInstanceSettingsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateInstanceSettings(_ InstanceId: String, _ request: UpdateInstanceSettingsRequest) async throws -> UpdateInstanceSettingsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateInstanceSettingsWithOptions(InstanceId as! String, request as! UpdateInstanceSettingsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateKibanaPvlNetworkWithOptions(_ InstanceId: String, _ request: UpdateKibanaPvlNetworkRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateKibanaPvlNetworkResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.pvlId)) { query["pvlId"] = request.pvlId ?? ""; } var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.endpointName)) { body["endpointName"] = request.endpointName ?? ""; } if (!TeaUtils.Client.isUnset(request.securityGroups)) { body["securityGroups"] = request.securityGroups ?? []; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateKibanaPvlNetwork", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/update-kibana-private", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateKibanaPvlNetworkResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateKibanaPvlNetwork(_ InstanceId: String, _ request: UpdateKibanaPvlNetworkRequest) async throws -> UpdateKibanaPvlNetworkResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateKibanaPvlNetworkWithOptions(InstanceId as! String, request as! UpdateKibanaPvlNetworkRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateKibanaSettingsWithOptions(_ InstanceId: String, _ request: UpdateKibanaSettingsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateKibanaSettingsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateKibanaSettings", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/update-kibana-settings", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateKibanaSettingsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateKibanaSettings(_ InstanceId: String, _ request: UpdateKibanaSettingsRequest) async throws -> UpdateKibanaSettingsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateKibanaSettingsWithOptions(InstanceId as! String, request as! UpdateKibanaSettingsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateKibanaWhiteIpsWithOptions(_ InstanceId: String, _ request: UpdateKibanaWhiteIpsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateKibanaWhiteIpsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.modifyMode)) { query["modifyMode"] = request.modifyMode ?? ""; } var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.kibanaIPWhitelist)) { body["kibanaIPWhitelist"] = request.kibanaIPWhitelist ?? []; } if (!TeaUtils.Client.isUnset(request.whiteIpGroup)) { body["whiteIpGroup"] = request.whiteIpGroup!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateKibanaWhiteIps", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/kibana-white-ips", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateKibanaWhiteIpsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateKibanaWhiteIps(_ InstanceId: String, _ request: UpdateKibanaWhiteIpsRequest) async throws -> UpdateKibanaWhiteIpsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateKibanaWhiteIpsWithOptions(InstanceId as! String, request as! UpdateKibanaWhiteIpsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateLogstashWithOptions(_ InstanceId: String, _ request: UpdateLogstashRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateLogstashResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.nodeAmount)) { body["nodeAmount"] = request.nodeAmount!; } if (!TeaUtils.Client.isUnset(request.nodeSpec)) { body["nodeSpec"] = request.nodeSpec!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateLogstash", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)), "method": "PUT", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateLogstashResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateLogstash(_ InstanceId: String, _ request: UpdateLogstashRequest) async throws -> UpdateLogstashResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateLogstashWithOptions(InstanceId as! String, request as! UpdateLogstashRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateLogstashChargeTypeWithOptions(_ InstanceId: String, _ request: UpdateLogstashChargeTypeRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateLogstashChargeTypeResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateLogstashChargeType", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/convert-pay-type", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateLogstashChargeTypeResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateLogstashChargeType(_ InstanceId: String, _ request: UpdateLogstashChargeTypeRequest) async throws -> UpdateLogstashChargeTypeResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateLogstashChargeTypeWithOptions(InstanceId as! String, request as! UpdateLogstashChargeTypeRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateLogstashDescriptionWithOptions(_ InstanceId: String, _ request: UpdateLogstashDescriptionRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateLogstashDescriptionResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.description_)) { body["description"] = request.description_ ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateLogstashDescription", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/description", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateLogstashDescriptionResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateLogstashDescription(_ InstanceId: String, _ request: UpdateLogstashDescriptionRequest) async throws -> UpdateLogstashDescriptionResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateLogstashDescriptionWithOptions(InstanceId as! String, request as! UpdateLogstashDescriptionRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateLogstashSettingsWithOptions(_ InstanceId: String, _ request: UpdateLogstashSettingsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateLogstashSettingsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateLogstashSettings", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/instance-settings", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateLogstashSettingsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateLogstashSettings(_ InstanceId: String, _ request: UpdateLogstashSettingsRequest) async throws -> UpdateLogstashSettingsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateLogstashSettingsWithOptions(InstanceId as! String, request as! UpdateLogstashSettingsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updatePipelineManagementConfigWithOptions(_ InstanceId: String, _ request: UpdatePipelineManagementConfigRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdatePipelineManagementConfigResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.endpoints)) { body["endpoints"] = request.endpoints ?? []; } if (!TeaUtils.Client.isUnset(request.esInstanceId)) { body["esInstanceId"] = request.esInstanceId ?? ""; } if (!TeaUtils.Client.isUnset(request.password)) { body["password"] = request.password ?? ""; } if (!TeaUtils.Client.isUnset(request.pipelineIds)) { body["pipelineIds"] = request.pipelineIds ?? []; } if (!TeaUtils.Client.isUnset(request.pipelineManagementType)) { body["pipelineManagementType"] = request.pipelineManagementType ?? ""; } if (!TeaUtils.Client.isUnset(request.userName)) { body["userName"] = request.userName ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdatePipelineManagementConfig", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/pipeline-management-config", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdatePipelineManagementConfigResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updatePipelineManagementConfig(_ InstanceId: String, _ request: UpdatePipelineManagementConfigRequest) async throws -> UpdatePipelineManagementConfigResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updatePipelineManagementConfigWithOptions(InstanceId as! String, request as! UpdatePipelineManagementConfigRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updatePipelinesWithOptions(_ InstanceId: String, _ request: UpdatePipelinesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdatePipelinesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.trigger)) { query["trigger"] = request.trigger!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdatePipelines", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/pipelines", "method": "PUT", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdatePipelinesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updatePipelines(_ InstanceId: String, _ request: UpdatePipelinesRequest) async throws -> UpdatePipelinesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updatePipelinesWithOptions(InstanceId as! String, request as! UpdatePipelinesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updatePrivateNetworkWhiteIpsWithOptions(_ InstanceId: String, _ request: UpdatePrivateNetworkWhiteIpsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdatePrivateNetworkWhiteIpsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.modifyMode)) { query["modifyMode"] = request.modifyMode ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdatePrivateNetworkWhiteIps", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/private-network-white-ips", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdatePrivateNetworkWhiteIpsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updatePrivateNetworkWhiteIps(_ InstanceId: String, _ request: UpdatePrivateNetworkWhiteIpsRequest) async throws -> UpdatePrivateNetworkWhiteIpsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updatePrivateNetworkWhiteIpsWithOptions(InstanceId as! String, request as! UpdatePrivateNetworkWhiteIpsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updatePublicNetworkWithOptions(_ InstanceId: String, _ request: UpdatePublicNetworkRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdatePublicNetworkResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdatePublicNetwork", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/public-network", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdatePublicNetworkResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updatePublicNetwork(_ InstanceId: String, _ request: UpdatePublicNetworkRequest) async throws -> UpdatePublicNetworkResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updatePublicNetworkWithOptions(InstanceId as! String, request as! UpdatePublicNetworkRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updatePublicWhiteIpsWithOptions(_ InstanceId: String, _ request: UpdatePublicWhiteIpsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdatePublicWhiteIpsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.modifyMode)) { query["modifyMode"] = request.modifyMode ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdatePublicWhiteIps", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/public-white-ips", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdatePublicWhiteIpsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updatePublicWhiteIps(_ InstanceId: String, _ request: UpdatePublicWhiteIpsRequest) async throws -> UpdatePublicWhiteIpsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updatePublicWhiteIpsWithOptions(InstanceId as! String, request as! UpdatePublicWhiteIpsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateReadWritePolicyWithOptions(_ InstanceId: String, _ request: UpdateReadWritePolicyRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateReadWritePolicyResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateReadWritePolicy", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/update-read-write-policy", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateReadWritePolicyResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateReadWritePolicy(_ InstanceId: String, _ request: UpdateReadWritePolicyRequest) async throws -> UpdateReadWritePolicyResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateReadWritePolicyWithOptions(InstanceId as! String, request as! UpdateReadWritePolicyRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateSnapshotSettingWithOptions(_ InstanceId: String, _ request: UpdateSnapshotSettingRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateSnapshotSettingResponse { try TeaUtils.Client.validateModel(request) var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateSnapshotSetting", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/snapshot-setting", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateSnapshotSettingResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateSnapshotSetting(_ InstanceId: String, _ request: UpdateSnapshotSettingRequest) async throws -> UpdateSnapshotSettingResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateSnapshotSettingWithOptions(InstanceId as! String, request as! UpdateSnapshotSettingRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateSynonymsDictsWithOptions(_ InstanceId: String, _ request: UpdateSynonymsDictsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateSynonymsDictsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateSynonymsDicts", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/synonymsDict", "method": "PUT", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateSynonymsDictsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateSynonymsDicts(_ InstanceId: String, _ request: UpdateSynonymsDictsRequest) async throws -> UpdateSynonymsDictsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateSynonymsDictsWithOptions(InstanceId as! String, request as! UpdateSynonymsDictsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateTemplateWithOptions(_ InstanceId: String, _ TemplateName: String, _ request: UpdateTemplateRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateTemplateResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateTemplate", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/templates/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(TemplateName)), "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateTemplateResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateTemplate(_ InstanceId: String, _ TemplateName: String, _ request: UpdateTemplateRequest) async throws -> UpdateTemplateResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateTemplateWithOptions(InstanceId as! String, TemplateName as! String, request as! UpdateTemplateRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateWhiteIpsWithOptions(_ InstanceId: String, _ request: UpdateWhiteIpsRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateWhiteIpsResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.modifyMode)) { query["modifyMode"] = request.modifyMode ?? ""; } var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.esIPWhitelist)) { body["esIPWhitelist"] = request.esIPWhitelist ?? []; } if (!TeaUtils.Client.isUnset(request.whiteIpGroup)) { body["whiteIpGroup"] = request.whiteIpGroup!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateWhiteIps", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/white-ips", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateWhiteIpsResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateWhiteIps(_ InstanceId: String, _ request: UpdateWhiteIpsRequest) async throws -> UpdateWhiteIpsResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateWhiteIpsWithOptions(InstanceId as! String, request as! UpdateWhiteIpsRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateXpackMonitorConfigWithOptions(_ InstanceId: String, _ request: UpdateXpackMonitorConfigRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpdateXpackMonitorConfigResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.enable)) { body["enable"] = request.enable!; } if (!TeaUtils.Client.isUnset(request.endpoints)) { body["endpoints"] = request.endpoints ?? []; } if (!TeaUtils.Client.isUnset(request.password)) { body["password"] = request.password ?? ""; } if (!TeaUtils.Client.isUnset(request.userName)) { body["userName"] = request.userName ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpdateXpackMonitorConfig", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/xpack-monitor-config", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpdateXpackMonitorConfigResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func updateXpackMonitorConfig(_ InstanceId: String, _ request: UpdateXpackMonitorConfigRequest) async throws -> UpdateXpackMonitorConfigResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await updateXpackMonitorConfigWithOptions(InstanceId as! String, request as! UpdateXpackMonitorConfigRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func upgradeEngineVersionWithOptions(_ InstanceId: String, _ request: UpgradeEngineVersionRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> UpgradeEngineVersionResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.dryRun)) { query["dryRun"] = request.dryRun!; } if (!TeaUtils.Client.isUnset(request.updateStrategy)) { query["updateStrategy"] = request.updateStrategy ?? ""; } var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.plugins)) { body["plugins"] = request.plugins ?? []; } if (!TeaUtils.Client.isUnset(request.type)) { body["type"] = request.type ?? ""; } if (!TeaUtils.Client.isUnset(request.version)) { body["version"] = request.version ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "UpgradeEngineVersion", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/actions/upgrade-version", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(UpgradeEngineVersionResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func upgradeEngineVersion(_ InstanceId: String, _ request: UpgradeEngineVersionRequest) async throws -> UpgradeEngineVersionResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await upgradeEngineVersionWithOptions(InstanceId as! String, request as! UpgradeEngineVersionRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func validateConnectionWithOptions(_ InstanceId: String, _ request: ValidateConnectionRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ValidateConnectionResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": request.body ?? "" ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ValidateConnection", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/logstashes/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/validate-connection", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ValidateConnectionResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func validateConnection(_ InstanceId: String, _ request: ValidateConnectionRequest) async throws -> ValidateConnectionResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await validateConnectionWithOptions(InstanceId as! String, request as! ValidateConnectionRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func validateShrinkNodesWithOptions(_ InstanceId: String, _ request: ValidateShrinkNodesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ValidateShrinkNodesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.count)) { query["count"] = request.count!; } if (!TeaUtils.Client.isUnset(request.ignoreStatus)) { query["ignoreStatus"] = request.ignoreStatus!; } if (!TeaUtils.Client.isUnset(request.nodeType)) { query["nodeType"] = request.nodeType ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": TeaUtils.Client.toArray(request.body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ValidateShrinkNodes", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/validate-shrink-nodes", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ValidateShrinkNodesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func validateShrinkNodes(_ InstanceId: String, _ request: ValidateShrinkNodesRequest) async throws -> ValidateShrinkNodesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await validateShrinkNodesWithOptions(InstanceId as! String, request as! ValidateShrinkNodesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func validateSlrPermissionWithOptions(_ request: ValidateSlrPermissionRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ValidateSlrPermissionResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["ClientToken"] = request.clientToken ?? ""; } if (!TeaUtils.Client.isUnset(request.rolename)) { query["rolename"] = request.rolename ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ValidateSlrPermission", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/user/servicerolepermission", "method": "GET", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ValidateSlrPermissionResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func validateSlrPermission(_ request: ValidateSlrPermissionRequest) async throws -> ValidateSlrPermissionResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await validateSlrPermissionWithOptions(request as! ValidateSlrPermissionRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func validateTransferableNodesWithOptions(_ InstanceId: String, _ request: ValidateTransferableNodesRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> ValidateTransferableNodesResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.nodeType)) { query["nodeType"] = request.nodeType ?? ""; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": TeaUtils.Client.toArray(request.body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "ValidateTransferableNodes", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances/" + (AlibabaCloudOpenApiUtil.Client.getEncodeParam(InstanceId)) + "/validate-transfer-nodes", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "json" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(ValidateTransferableNodesResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func validateTransferableNodes(_ InstanceId: String, _ request: ValidateTransferableNodesRequest) async throws -> ValidateTransferableNodesResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await validateTransferableNodesWithOptions(InstanceId as! String, request as! ValidateTransferableNodesRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func createInstanceWithOptions(_ request: CreateInstanceRequest, _ headers: [String: String], _ runtime: TeaUtils.RuntimeOptions) async throws -> CreateInstanceResponse { try TeaUtils.Client.validateModel(request) var query: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientToken)) { query["clientToken"] = request.clientToken ?? ""; } var body: [String: Any] = [:] if (!TeaUtils.Client.isUnset(request.clientNodeConfiguration)) { body["clientNodeConfiguration"] = request.clientNodeConfiguration!; } if (!TeaUtils.Client.isUnset(request.description_)) { body["description"] = request.description_ ?? ""; } if (!TeaUtils.Client.isUnset(request.elasticDataNodeConfiguration)) { body["elasticDataNodeConfiguration"] = request.elasticDataNodeConfiguration!; } if (!TeaUtils.Client.isUnset(request.esAdminPassword)) { body["esAdminPassword"] = request.esAdminPassword ?? ""; } if (!TeaUtils.Client.isUnset(request.esVersion)) { body["esVersion"] = request.esVersion ?? ""; } if (!TeaUtils.Client.isUnset(request.instanceCategory)) { body["instanceCategory"] = request.instanceCategory ?? ""; } if (!TeaUtils.Client.isUnset(request.kibanaConfiguration)) { body["kibanaConfiguration"] = request.kibanaConfiguration!; } if (!TeaUtils.Client.isUnset(request.masterConfiguration)) { body["masterConfiguration"] = request.masterConfiguration!; } if (!TeaUtils.Client.isUnset(request.networkConfig)) { body["networkConfig"] = request.networkConfig!; } if (!TeaUtils.Client.isUnset(request.nodeAmount)) { body["nodeAmount"] = request.nodeAmount!; } if (!TeaUtils.Client.isUnset(request.nodeSpec)) { body["nodeSpec"] = request.nodeSpec!; } if (!TeaUtils.Client.isUnset(request.paymentInfo)) { body["paymentInfo"] = request.paymentInfo!; } if (!TeaUtils.Client.isUnset(request.paymentType)) { body["paymentType"] = request.paymentType ?? ""; } if (!TeaUtils.Client.isUnset(request.resourceGroupId)) { body["resourceGroupId"] = request.resourceGroupId ?? ""; } if (!TeaUtils.Client.isUnset(request.tags)) { body["tags"] = request.tags ?? []; } if (!TeaUtils.Client.isUnset(request.warmNodeConfiguration)) { body["warmNodeConfiguration"] = request.warmNodeConfiguration!; } if (!TeaUtils.Client.isUnset(request.zoneCount)) { body["zoneCount"] = request.zoneCount!; } var req: AlibabacloudOpenApi.OpenApiRequest = AlibabacloudOpenApi.OpenApiRequest([ "headers": headers as! [String: String], "query": AlibabaCloudOpenApiUtil.Client.query(query), "body": AlibabaCloudOpenApiUtil.Client.parseToMap(body) ]) var params: AlibabacloudOpenApi.Params = AlibabacloudOpenApi.Params([ "action": "createInstance", "version": "2017-06-13", "protocol": "HTTPS", "pathname": "/openapi/instances", "method": "POST", "authType": "AK", "style": "ROA", "reqBodyType": "json", "bodyType": "none" ]) var tmp: [String: Any] = try await callApi(params as! AlibabacloudOpenApi.Params, req as! AlibabacloudOpenApi.OpenApiRequest, runtime as! TeaUtils.RuntimeOptions) return Tea.TeaConverter.fromMap(CreateInstanceResponse(), tmp) } @available(macOS 10.15, iOS 13, tvOS 13, watchOS 6, *) public func createInstance(_ request: CreateInstanceRequest) async throws -> CreateInstanceResponse { var runtime: TeaUtils.RuntimeOptions = TeaUtils.RuntimeOptions([:]) var headers: [String: String] = [:] return try await createInstanceWithOptions(request as! CreateInstanceRequest, headers as! [String: String], runtime as! TeaUtils.RuntimeOptions) } }