@@ -11,6 +11,8 @@ public struct IngestionSource: Codable, JSONEncodable {
11
11
public var sourceID : String
12
12
public var type : SourceType
13
13
public var name : String
14
+ /// Owner of the resource.
15
+ public var owner : String ?
14
16
public var input : SourceInput ?
15
17
/// Universally unique identifier (UUID) of an authentication resource.
16
18
public var authenticationID : String ?
@@ -23,6 +25,7 @@ public struct IngestionSource: Codable, JSONEncodable {
23
25
sourceID: String ,
24
26
type: SourceType ,
25
27
name: String ,
28
+ owner: String ? = nil ,
26
29
input: SourceInput ? = nil ,
27
30
authenticationID: String ? = nil ,
28
31
createdAt: String ,
@@ -31,6 +34,7 @@ public struct IngestionSource: Codable, JSONEncodable {
31
34
self . sourceID = sourceID
32
35
self . type = type
33
36
self . name = name
37
+ self . owner = owner
34
38
self . input = input
35
39
self . authenticationID = authenticationID
36
40
self . createdAt = createdAt
@@ -41,6 +45,7 @@ public struct IngestionSource: Codable, JSONEncodable {
41
45
case sourceID
42
46
case type
43
47
case name
48
+ case owner
44
49
case input
45
50
case authenticationID
46
51
case createdAt
@@ -54,6 +59,7 @@ public struct IngestionSource: Codable, JSONEncodable {
54
59
try container. encode ( self . sourceID, forKey: . sourceID)
55
60
try container. encode ( self . type, forKey: . type)
56
61
try container. encode ( self . name, forKey: . name)
62
+ try container. encodeIfPresent ( self . owner, forKey: . owner)
57
63
try container. encodeIfPresent ( self . input, forKey: . input)
58
64
try container. encodeIfPresent ( self . authenticationID, forKey: . authenticationID)
59
65
try container. encode ( self . createdAt, forKey: . createdAt)
@@ -66,6 +72,7 @@ extension IngestionSource: Equatable {
66
72
lhs. sourceID == rhs. sourceID &&
67
73
lhs. type == rhs. type &&
68
74
lhs. name == rhs. name &&
75
+ lhs. owner == rhs. owner &&
69
76
lhs. input == rhs. input &&
70
77
lhs. authenticationID == rhs. authenticationID &&
71
78
lhs. createdAt == rhs. createdAt &&
@@ -78,6 +85,7 @@ extension IngestionSource: Hashable {
78
85
hasher. combine ( self . sourceID. hashValue)
79
86
hasher. combine ( self . type. hashValue)
80
87
hasher. combine ( self . name. hashValue)
88
+ hasher. combine ( self . owner? . hashValue)
81
89
hasher. combine ( self . input? . hashValue)
82
90
hasher. combine ( self . authenticationID? . hashValue)
83
91
hasher. combine ( self . createdAt. hashValue)
0 commit comments