Skip to content

Commit cf6cbac

Browse files
feat(specs): add subscriptionAction to ingestion specs (generated)
algolia/api-clients-automation#4587 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent c53d5b6 commit cf6cbac

File tree

3 files changed

+27
-0
lines changed

3 files changed

+27
-0
lines changed

algoliasearch/Models/Ingestion/IngestionTask.cs

+9
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ public partial class IngestionTask
2222
/// </summary>
2323
[JsonPropertyName("action")]
2424
public ActionType? Action { get; set; }
25+
26+
/// <summary>
27+
/// Gets or Sets SubscriptionAction
28+
/// </summary>
29+
[JsonPropertyName("subscriptionAction")]
30+
public ActionType? SubscriptionAction { get; set; }
2531
/// <summary>
2632
/// Initializes a new instance of the IngestionTask class.
2733
/// </summary>
@@ -157,6 +163,7 @@ public override string ToString()
157163
sb.Append(" Enabled: ").Append(Enabled).Append("\n");
158164
sb.Append(" FailureThreshold: ").Append(FailureThreshold).Append("\n");
159165
sb.Append(" Action: ").Append(Action).Append("\n");
166+
sb.Append(" SubscriptionAction: ").Append(SubscriptionAction).Append("\n");
160167
sb.Append(" Cursor: ").Append(Cursor).Append("\n");
161168
sb.Append(" Notifications: ").Append(Notifications).Append("\n");
162169
sb.Append(" Policies: ").Append(Policies).Append("\n");
@@ -198,6 +205,7 @@ public override bool Equals(object obj)
198205
(Enabled == input.Enabled || Enabled.Equals(input.Enabled)) &&
199206
(FailureThreshold == input.FailureThreshold || FailureThreshold.Equals(input.FailureThreshold)) &&
200207
(Action == input.Action || Action.Equals(input.Action)) &&
208+
(SubscriptionAction == input.SubscriptionAction || SubscriptionAction.Equals(input.SubscriptionAction)) &&
201209
(Cursor == input.Cursor || (Cursor != null && Cursor.Equals(input.Cursor))) &&
202210
(Notifications == input.Notifications || (Notifications != null && Notifications.Equals(input.Notifications))) &&
203211
(Policies == input.Policies || (Policies != null && Policies.Equals(input.Policies))) &&
@@ -245,6 +253,7 @@ public override int GetHashCode()
245253
hashCode = (hashCode * 59) + Enabled.GetHashCode();
246254
hashCode = (hashCode * 59) + FailureThreshold.GetHashCode();
247255
hashCode = (hashCode * 59) + Action.GetHashCode();
256+
hashCode = (hashCode * 59) + SubscriptionAction.GetHashCode();
248257
if (Cursor != null)
249258
{
250259
hashCode = (hashCode * 59) + Cursor.GetHashCode();

algoliasearch/Models/Ingestion/TaskCreate.cs

+9
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,12 @@ public partial class TaskCreate
2222
/// </summary>
2323
[JsonPropertyName("action")]
2424
public ActionType? Action { get; set; }
25+
26+
/// <summary>
27+
/// Gets or Sets SubscriptionAction
28+
/// </summary>
29+
[JsonPropertyName("subscriptionAction")]
30+
public ActionType? SubscriptionAction { get; set; }
2531
/// <summary>
2632
/// Initializes a new instance of the TaskCreate class.
2733
/// </summary>
@@ -111,6 +117,7 @@ public override string ToString()
111117
sb.Append(" SourceID: ").Append(SourceID).Append("\n");
112118
sb.Append(" DestinationID: ").Append(DestinationID).Append("\n");
113119
sb.Append(" Action: ").Append(Action).Append("\n");
120+
sb.Append(" SubscriptionAction: ").Append(SubscriptionAction).Append("\n");
114121
sb.Append(" Cron: ").Append(Cron).Append("\n");
115122
sb.Append(" Enabled: ").Append(Enabled).Append("\n");
116123
sb.Append(" FailureThreshold: ").Append(FailureThreshold).Append("\n");
@@ -147,6 +154,7 @@ public override bool Equals(object obj)
147154
(SourceID == input.SourceID || (SourceID != null && SourceID.Equals(input.SourceID))) &&
148155
(DestinationID == input.DestinationID || (DestinationID != null && DestinationID.Equals(input.DestinationID))) &&
149156
(Action == input.Action || Action.Equals(input.Action)) &&
157+
(SubscriptionAction == input.SubscriptionAction || SubscriptionAction.Equals(input.SubscriptionAction)) &&
150158
(Cron == input.Cron || (Cron != null && Cron.Equals(input.Cron))) &&
151159
(Enabled == input.Enabled || Enabled.Equals(input.Enabled)) &&
152160
(FailureThreshold == input.FailureThreshold || FailureThreshold.Equals(input.FailureThreshold)) &&
@@ -174,6 +182,7 @@ public override int GetHashCode()
174182
hashCode = (hashCode * 59) + DestinationID.GetHashCode();
175183
}
176184
hashCode = (hashCode * 59) + Action.GetHashCode();
185+
hashCode = (hashCode * 59) + SubscriptionAction.GetHashCode();
177186
if (Cron != null)
178187
{
179188
hashCode = (hashCode * 59) + Cron.GetHashCode();

algoliasearch/Models/Ingestion/TaskUpdate.cs

+9
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ namespace Algolia.Search.Models.Ingestion;
1616
/// </summary>
1717
public partial class TaskUpdate
1818
{
19+
20+
/// <summary>
21+
/// Gets or Sets SubscriptionAction
22+
/// </summary>
23+
[JsonPropertyName("subscriptionAction")]
24+
public ActionType? SubscriptionAction { get; set; }
1925
/// <summary>
2026
/// Initializes a new instance of the TaskUpdate class.
2127
/// </summary>
@@ -81,6 +87,7 @@ public override string ToString()
8187
sb.Append(" Cron: ").Append(Cron).Append("\n");
8288
sb.Append(" Input: ").Append(Input).Append("\n");
8389
sb.Append(" Enabled: ").Append(Enabled).Append("\n");
90+
sb.Append(" SubscriptionAction: ").Append(SubscriptionAction).Append("\n");
8491
sb.Append(" FailureThreshold: ").Append(FailureThreshold).Append("\n");
8592
sb.Append(" Notifications: ").Append(Notifications).Append("\n");
8693
sb.Append(" Policies: ").Append(Policies).Append("\n");
@@ -114,6 +121,7 @@ public override bool Equals(object obj)
114121
(Cron == input.Cron || (Cron != null && Cron.Equals(input.Cron))) &&
115122
(Input == input.Input || (Input != null && Input.Equals(input.Input))) &&
116123
(Enabled == input.Enabled || Enabled.Equals(input.Enabled)) &&
124+
(SubscriptionAction == input.SubscriptionAction || SubscriptionAction.Equals(input.SubscriptionAction)) &&
117125
(FailureThreshold == input.FailureThreshold || FailureThreshold.Equals(input.FailureThreshold)) &&
118126
(Notifications == input.Notifications || (Notifications != null && Notifications.Equals(input.Notifications))) &&
119127
(Policies == input.Policies || (Policies != null && Policies.Equals(input.Policies)));
@@ -141,6 +149,7 @@ public override int GetHashCode()
141149
hashCode = (hashCode * 59) + Input.GetHashCode();
142150
}
143151
hashCode = (hashCode * 59) + Enabled.GetHashCode();
152+
hashCode = (hashCode * 59) + SubscriptionAction.GetHashCode();
144153
hashCode = (hashCode * 59) + FailureThreshold.GetHashCode();
145154
if (Notifications != null)
146155
{

0 commit comments

Comments
 (0)