Skip to content

Commit 036dcf4

Browse files
fix(specs): ingestion docker task input (generated)
algolia/api-clients-automation#3488 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent da0bb17 commit 036dcf4

File tree

4 files changed

+72
-5
lines changed

4 files changed

+72
-5
lines changed

Sources/Ingestion/IngestionClient.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3031,11 +3031,11 @@ open class IngestionClient {
30313031
/// - parameter transformationTry: (body)
30323032
/// - returns: TransformationTryResponse
30333033
@available(macOS 10.15, iOS 13.0, tvOS 13.0, watchOS 6.0, *)
3034-
open func tryTransformations(
3034+
open func tryTransformation(
30353035
transformationTry: TransformationTry,
30363036
requestOptions: RequestOptions? = nil
30373037
) async throws -> TransformationTryResponse {
3038-
let response: Response<TransformationTryResponse> = try await tryTransformationsWithHTTPInfo(
3038+
let response: Response<TransformationTryResponse> = try await tryTransformationWithHTTPInfo(
30393039
transformationTry: transformationTry,
30403040
requestOptions: requestOptions
30413041
)
@@ -3056,7 +3056,7 @@ open class IngestionClient {
30563056
// - parameter transformationTry: (body)
30573057
// - returns: RequestBuilder<TransformationTryResponse>
30583058

3059-
open func tryTransformationsWithHTTPInfo(
3059+
open func tryTransformationWithHTTPInfo(
30603060
transformationTry: TransformationTry,
30613061
requestOptions userRequestOptions: RequestOptions? = nil
30623062
) async throws -> Response<TransformationTryResponse> {
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on
2+
// https://github.com/algolia/api-clients-automation. DO NOT EDIT.
3+
4+
import Foundation
5+
#if canImport(Core)
6+
import Core
7+
#endif
8+
9+
public struct DockerStreams: Codable, JSONEncodable {
10+
/// The name of the stream to fetch the data from (e.g. table name).
11+
public var name: String
12+
/// The properties of the stream to select (e.g. column).
13+
public var properties: [String]?
14+
public var syncMode: DockerStreamsSyncMode
15+
16+
public init(name: String, properties: [String]? = nil, syncMode: DockerStreamsSyncMode) {
17+
self.name = name
18+
self.properties = properties
19+
self.syncMode = syncMode
20+
}
21+
22+
public enum CodingKeys: String, CodingKey, CaseIterable {
23+
case name
24+
case properties
25+
case syncMode
26+
}
27+
28+
// Encodable protocol methods
29+
30+
public func encode(to encoder: Encoder) throws {
31+
var container = encoder.container(keyedBy: CodingKeys.self)
32+
try container.encode(self.name, forKey: .name)
33+
try container.encodeIfPresent(self.properties, forKey: .properties)
34+
try container.encode(self.syncMode, forKey: .syncMode)
35+
}
36+
}
37+
38+
extension DockerStreams: Equatable {
39+
public static func ==(lhs: DockerStreams, rhs: DockerStreams) -> Bool {
40+
lhs.name == rhs.name &&
41+
lhs.properties == rhs.properties &&
42+
lhs.syncMode == rhs.syncMode
43+
}
44+
}
45+
46+
extension DockerStreams: Hashable {
47+
public func hash(into hasher: inout Hasher) {
48+
hasher.combine(self.name.hashValue)
49+
hasher.combine(self.properties?.hashValue)
50+
hasher.combine(self.syncMode.hashValue)
51+
}
52+
}

Sources/Ingestion/Models/DockerStreamsInput.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import Foundation
88

99
/// The selected streams of a singer or airbyte connector.
1010
public struct DockerStreamsInput: Codable, JSONEncodable {
11-
public var streams: AnyCodable
11+
public var streams: [DockerStreams]
1212

13-
public init(streams: AnyCodable) {
13+
public init(streams: [DockerStreams]) {
1414
self.streams = streams
1515
}
1616

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on
2+
// https://github.com/algolia/api-clients-automation. DO NOT EDIT.
3+
4+
import Foundation
5+
#if canImport(Core)
6+
import Core
7+
#endif
8+
9+
/// The strategy to use to fetch the data.
10+
public enum DockerStreamsSyncMode: String, Codable, CaseIterable {
11+
case incremental
12+
case fullTable
13+
}
14+
15+
extension DockerStreamsSyncMode: Hashable {}

0 commit comments

Comments
 (0)