@@ -25,6 +25,7 @@ public struct IngestionTask: Codable, JSONEncodable {
2525 /// Maximum accepted percentage of failures for a task run to finish successfully.
2626 public var failureThreshold : Int ?
2727 public var action : ActionType ?
28+ public var subscriptionAction : ActionType ?
2829 /// Date of the last cursor in RFC 3339 format.
2930 public var cursor : String ?
3031 public var notifications : Notifications ?
@@ -45,6 +46,7 @@ public struct IngestionTask: Codable, JSONEncodable {
4546 enabled: Bool ,
4647 failureThreshold: Int ? = nil ,
4748 action: ActionType ? = nil ,
49+ subscriptionAction: ActionType ? = nil ,
4850 cursor: String ? = nil ,
4951 notifications: Notifications ? = nil ,
5052 policies: Policies ? = nil ,
@@ -61,6 +63,7 @@ public struct IngestionTask: Codable, JSONEncodable {
6163 self . enabled = enabled
6264 self . failureThreshold = failureThreshold
6365 self . action = action
66+ self . subscriptionAction = subscriptionAction
6467 self . cursor = cursor
6568 self . notifications = notifications
6669 self . policies = policies
@@ -79,6 +82,7 @@ public struct IngestionTask: Codable, JSONEncodable {
7982 case enabled
8083 case failureThreshold
8184 case action
85+ case subscriptionAction
8286 case cursor
8387 case notifications
8488 case policies
@@ -100,6 +104,7 @@ public struct IngestionTask: Codable, JSONEncodable {
100104 try container. encode ( self . enabled, forKey: . enabled)
101105 try container. encodeIfPresent ( self . failureThreshold, forKey: . failureThreshold)
102106 try container. encodeIfPresent ( self . action, forKey: . action)
107+ try container. encodeIfPresent ( self . subscriptionAction, forKey: . subscriptionAction)
103108 try container. encodeIfPresent ( self . cursor, forKey: . cursor)
104109 try container. encodeIfPresent ( self . notifications, forKey: . notifications)
105110 try container. encodeIfPresent ( self . policies, forKey: . policies)
@@ -120,6 +125,7 @@ extension IngestionTask: Equatable {
120125 lhs. enabled == rhs. enabled &&
121126 lhs. failureThreshold == rhs. failureThreshold &&
122127 lhs. action == rhs. action &&
128+ lhs. subscriptionAction == rhs. subscriptionAction &&
123129 lhs. cursor == rhs. cursor &&
124130 lhs. notifications == rhs. notifications &&
125131 lhs. policies == rhs. policies &&
@@ -140,6 +146,7 @@ extension IngestionTask: Hashable {
140146 hasher. combine ( self . enabled. hashValue)
141147 hasher. combine ( self . failureThreshold? . hashValue)
142148 hasher. combine ( self . action? . hashValue)
149+ hasher. combine ( self . subscriptionAction? . hashValue)
143150 hasher. combine ( self . cursor? . hashValue)
144151 hasher. combine ( self . notifications? . hashValue)
145152 hasher. combine ( self . policies? . hashValue)
0 commit comments