@@ -11,6 +11,8 @@ public struct IngestionSource: Codable, JSONEncodable {
1111 public var sourceID : String
1212 public var type : SourceType
1313 public var name : String
14+ /// Owner of the resource.
15+ public var owner : String ?
1416 public var input : SourceInput ?
1517 /// Universally unique identifier (UUID) of an authentication resource.
1618 public var authenticationID : String ?
@@ -23,6 +25,7 @@ public struct IngestionSource: Codable, JSONEncodable {
2325 sourceID: String ,
2426 type: SourceType ,
2527 name: String ,
28+ owner: String ? = nil ,
2629 input: SourceInput ? = nil ,
2730 authenticationID: String ? = nil ,
2831 createdAt: String ,
@@ -31,6 +34,7 @@ public struct IngestionSource: Codable, JSONEncodable {
3134 self . sourceID = sourceID
3235 self . type = type
3336 self . name = name
37+ self . owner = owner
3438 self . input = input
3539 self . authenticationID = authenticationID
3640 self . createdAt = createdAt
@@ -41,6 +45,7 @@ public struct IngestionSource: Codable, JSONEncodable {
4145 case sourceID
4246 case type
4347 case name
48+ case owner
4449 case input
4550 case authenticationID
4651 case createdAt
@@ -54,6 +59,7 @@ public struct IngestionSource: Codable, JSONEncodable {
5459 try container. encode ( self . sourceID, forKey: . sourceID)
5560 try container. encode ( self . type, forKey: . type)
5661 try container. encode ( self . name, forKey: . name)
62+ try container. encodeIfPresent ( self . owner, forKey: . owner)
5763 try container. encodeIfPresent ( self . input, forKey: . input)
5864 try container. encodeIfPresent ( self . authenticationID, forKey: . authenticationID)
5965 try container. encode ( self . createdAt, forKey: . createdAt)
@@ -66,6 +72,7 @@ extension IngestionSource: Equatable {
6672 lhs. sourceID == rhs. sourceID &&
6773 lhs. type == rhs. type &&
6874 lhs. name == rhs. name &&
75+ lhs. owner == rhs. owner &&
6976 lhs. input == rhs. input &&
7077 lhs. authenticationID == rhs. authenticationID &&
7178 lhs. createdAt == rhs. createdAt &&
@@ -78,6 +85,7 @@ extension IngestionSource: Hashable {
7885 hasher. combine ( self . sourceID. hashValue)
7986 hasher. combine ( self . type. hashValue)
8087 hasher. combine ( self . name. hashValue)
88+ hasher. combine ( self . owner? . hashValue)
8189 hasher. combine ( self . input? . hashValue)
8290 hasher. combine ( self . authenticationID? . hashValue)
8391 hasher. combine ( self . createdAt. hashValue)
0 commit comments