@@ -25,6 +25,7 @@ public struct IngestionTask: Codable, JSONEncodable {
25
25
/// Maximum accepted percentage of failures for a task run to finish successfully.
26
26
public var failureThreshold : Int ?
27
27
public var action : ActionType ?
28
+ public var subscriptionAction : ActionType ?
28
29
/// Date of the last cursor in RFC 3339 format.
29
30
public var cursor : String ?
30
31
public var notifications : Notifications ?
@@ -45,6 +46,7 @@ public struct IngestionTask: Codable, JSONEncodable {
45
46
enabled: Bool ,
46
47
failureThreshold: Int ? = nil ,
47
48
action: ActionType ? = nil ,
49
+ subscriptionAction: ActionType ? = nil ,
48
50
cursor: String ? = nil ,
49
51
notifications: Notifications ? = nil ,
50
52
policies: Policies ? = nil ,
@@ -61,6 +63,7 @@ public struct IngestionTask: Codable, JSONEncodable {
61
63
self . enabled = enabled
62
64
self . failureThreshold = failureThreshold
63
65
self . action = action
66
+ self . subscriptionAction = subscriptionAction
64
67
self . cursor = cursor
65
68
self . notifications = notifications
66
69
self . policies = policies
@@ -79,6 +82,7 @@ public struct IngestionTask: Codable, JSONEncodable {
79
82
case enabled
80
83
case failureThreshold
81
84
case action
85
+ case subscriptionAction
82
86
case cursor
83
87
case notifications
84
88
case policies
@@ -100,6 +104,7 @@ public struct IngestionTask: Codable, JSONEncodable {
100
104
try container. encode ( self . enabled, forKey: . enabled)
101
105
try container. encodeIfPresent ( self . failureThreshold, forKey: . failureThreshold)
102
106
try container. encodeIfPresent ( self . action, forKey: . action)
107
+ try container. encodeIfPresent ( self . subscriptionAction, forKey: . subscriptionAction)
103
108
try container. encodeIfPresent ( self . cursor, forKey: . cursor)
104
109
try container. encodeIfPresent ( self . notifications, forKey: . notifications)
105
110
try container. encodeIfPresent ( self . policies, forKey: . policies)
@@ -120,6 +125,7 @@ extension IngestionTask: Equatable {
120
125
lhs. enabled == rhs. enabled &&
121
126
lhs. failureThreshold == rhs. failureThreshold &&
122
127
lhs. action == rhs. action &&
128
+ lhs. subscriptionAction == rhs. subscriptionAction &&
123
129
lhs. cursor == rhs. cursor &&
124
130
lhs. notifications == rhs. notifications &&
125
131
lhs. policies == rhs. policies &&
@@ -140,6 +146,7 @@ extension IngestionTask: Hashable {
140
146
hasher. combine ( self . enabled. hashValue)
141
147
hasher. combine ( self . failureThreshold? . hashValue)
142
148
hasher. combine ( self . action? . hashValue)
149
+ hasher. combine ( self . subscriptionAction? . hashValue)
143
150
hasher. combine ( self . cursor? . hashValue)
144
151
hasher. combine ( self . notifications? . hashValue)
145
152
hasher. combine ( self . policies? . hashValue)
0 commit comments