Skip to content

Commit 5f5f108

Browse files
algolia-botsbellone
andcommitted
fix(specs): ingestion small fix + added source input descriptions (generated)
algolia/api-clients-automation#5515 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Sylvain Bellone <[email protected]>
1 parent ae5df69 commit 5f5f108

11 files changed

+11
-12
lines changed

Sources/Ingestion/Models/AuthenticationUpdate.swift

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,17 @@ public struct AuthenticationUpdate: Codable, JSONEncodable {
1111
public var type: AuthenticationType?
1212
/// Descriptive name for the resource.
1313
public var name: String?
14-
public var platform: Platform?
1514
public var input: AuthInputPartial?
1615

17-
public init(
18-
type: AuthenticationType? = nil,
19-
name: String? = nil,
20-
platform: Platform? = nil,
21-
input: AuthInputPartial? = nil
22-
) {
16+
public init(type: AuthenticationType? = nil, name: String? = nil, input: AuthInputPartial? = nil) {
2317
self.type = type
2418
self.name = name
25-
self.platform = platform
2619
self.input = input
2720
}
2821

2922
public enum CodingKeys: String, CodingKey, CaseIterable {
3023
case type
3124
case name
32-
case platform
3325
case input
3426
}
3527

@@ -39,7 +31,6 @@ public struct AuthenticationUpdate: Codable, JSONEncodable {
3931
var container = encoder.container(keyedBy: CodingKeys.self)
4032
try container.encodeIfPresent(self.type, forKey: .type)
4133
try container.encodeIfPresent(self.name, forKey: .name)
42-
try container.encodeIfPresent(self.platform, forKey: .platform)
4334
try container.encodeIfPresent(self.input, forKey: .input)
4435
}
4536
}
@@ -48,7 +39,6 @@ extension AuthenticationUpdate: Equatable {
4839
public static func ==(lhs: AuthenticationUpdate, rhs: AuthenticationUpdate) -> Bool {
4940
lhs.type == rhs.type &&
5041
lhs.name == rhs.name &&
51-
lhs.platform == rhs.platform &&
5242
lhs.input == rhs.input
5343
}
5444
}
@@ -57,7 +47,6 @@ extension AuthenticationUpdate: Hashable {
5747
public func hash(into hasher: inout Hasher) {
5848
hasher.combine(self.type?.hashValue)
5949
hasher.combine(self.name?.hashValue)
60-
hasher.combine(self.platform?.hashValue)
6150
hasher.combine(self.input?.hashValue)
6251
}
6352
}

Sources/Ingestion/Models/SourceBigCommerce.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Foundation
66
import Core
77
#endif
88

9+
/// Specific configuration attributes of a `bigcommerce` source.
910
public struct SourceBigCommerce: Codable, JSONEncodable {
1011
/// Store hash identifying your BigCommerce store.
1112
public var storeHash: String

Sources/Ingestion/Models/SourceBigQuery.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Foundation
66
import Core
77
#endif
88

9+
/// Specific configuration attributes of a `bigquery` source.
910
public struct SourceBigQuery: Codable, JSONEncodable {
1011
/// Project ID of the BigQuery source.
1112
public var projectID: String

Sources/Ingestion/Models/SourceCSV.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Foundation
66
import Core
77
#endif
88

9+
/// Specific configuration attributes of a `csv` source.
910
public struct SourceCSV: Codable, JSONEncodable {
1011
/// URL of the file.
1112
public var url: String

Sources/Ingestion/Models/SourceCommercetools.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Foundation
66
import Core
77
#endif
88

9+
/// Specific configuration attributes of a `commercetools` source.
910
public struct SourceCommercetools: Codable, JSONEncodable {
1011
public var storeKeys: [String]?
1112
/// Locales for your commercetools stores.

Sources/Ingestion/Models/SourceDocker.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Foundation
66
import Core
77
#endif
88

9+
/// Specific configuration attributes of a `docker` source.
910
public struct SourceDocker: Codable, JSONEncodable {
1011
/// Name of the connector.
1112
public var image: String

Sources/Ingestion/Models/SourceGA4BigQueryExport.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Foundation
66
import Core
77
#endif
88

9+
/// Specific configuration attributes of a `ga4BigqueryExport` source.
910
public struct SourceGA4BigQueryExport: Codable, JSONEncodable {
1011
/// GCP project ID that the BigQuery export writes to.
1112
public var projectID: String

Sources/Ingestion/Models/SourceJSON.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Foundation
66
import Core
77
#endif
88

9+
/// Specific configuration attributes of a `json` source.
910
public struct SourceJSON: Codable, JSONEncodable {
1011
/// URL of the file.
1112
public var url: String

Sources/Ingestion/Models/SourceUpdateCommercetools.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Foundation
66
import Core
77
#endif
88

9+
/// Specific configuration attributes of a `commercetools` source.
910
public struct SourceUpdateCommercetools: Codable, JSONEncodable {
1011
public var storeKeys: [String]?
1112
/// Locales for your commercetools stores.

Sources/Ingestion/Models/SourceUpdateDocker.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import Foundation
66
import Core
77
#endif
88

9+
/// Specific configuration attributes of a `docker` source.
910
public struct SourceUpdateDocker: Codable, JSONEncodable {
1011
/// Configuration of the spec.
1112
public var configuration: AnyCodable

0 commit comments

Comments
 (0)