-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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]>
- Loading branch information
1 parent
da0bb17
commit 036dcf4
Showing
4 changed files
with
72 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on | ||
// https://github.com/algolia/api-clients-automation. DO NOT EDIT. | ||
|
||
import Foundation | ||
#if canImport(Core) | ||
import Core | ||
#endif | ||
|
||
public struct DockerStreams: Codable, JSONEncodable { | ||
/// The name of the stream to fetch the data from (e.g. table name). | ||
public var name: String | ||
/// The properties of the stream to select (e.g. column). | ||
public var properties: [String]? | ||
public var syncMode: DockerStreamsSyncMode | ||
|
||
public init(name: String, properties: [String]? = nil, syncMode: DockerStreamsSyncMode) { | ||
self.name = name | ||
self.properties = properties | ||
self.syncMode = syncMode | ||
} | ||
|
||
public enum CodingKeys: String, CodingKey, CaseIterable { | ||
case name | ||
case properties | ||
case syncMode | ||
} | ||
|
||
// Encodable protocol methods | ||
|
||
public func encode(to encoder: Encoder) throws { | ||
var container = encoder.container(keyedBy: CodingKeys.self) | ||
try container.encode(self.name, forKey: .name) | ||
try container.encodeIfPresent(self.properties, forKey: .properties) | ||
try container.encode(self.syncMode, forKey: .syncMode) | ||
} | ||
} | ||
|
||
extension DockerStreams: Equatable { | ||
public static func ==(lhs: DockerStreams, rhs: DockerStreams) -> Bool { | ||
lhs.name == rhs.name && | ||
lhs.properties == rhs.properties && | ||
lhs.syncMode == rhs.syncMode | ||
} | ||
} | ||
|
||
extension DockerStreams: Hashable { | ||
public func hash(into hasher: inout Hasher) { | ||
hasher.combine(self.name.hashValue) | ||
hasher.combine(self.properties?.hashValue) | ||
hasher.combine(self.syncMode.hashValue) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on | ||
// https://github.com/algolia/api-clients-automation. DO NOT EDIT. | ||
|
||
import Foundation | ||
#if canImport(Core) | ||
import Core | ||
#endif | ||
|
||
/// The strategy to use to fetch the data. | ||
public enum DockerStreamsSyncMode: String, Codable, CaseIterable { | ||
case incremental | ||
case fullTable | ||
} | ||
|
||
extension DockerStreamsSyncMode: Hashable {} |