Skip to content

Commit b1f640e

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 84ebc34 commit b1f640e

File tree

3 files changed

+63
-2
lines changed

3 files changed

+63
-2
lines changed

algoliasearch/src/main/java/com/algolia/model/ingestion/Task.java

+17
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ public class Task {
4040
@JsonProperty("action")
4141
private ActionType action;
4242

43+
@JsonProperty("subscriptionAction")
44+
private ActionType subscriptionAction;
45+
4346
@JsonProperty("cursor")
4447
private String cursor;
4548

@@ -168,6 +171,17 @@ public ActionType getAction() {
168171
return action;
169172
}
170173

174+
public Task setSubscriptionAction(ActionType subscriptionAction) {
175+
this.subscriptionAction = subscriptionAction;
176+
return this;
177+
}
178+
179+
/** Get subscriptionAction */
180+
@javax.annotation.Nullable
181+
public ActionType getSubscriptionAction() {
182+
return subscriptionAction;
183+
}
184+
171185
public Task setCursor(String cursor) {
172186
this.cursor = cursor;
173187
return this;
@@ -243,6 +257,7 @@ public boolean equals(Object o) {
243257
Objects.equals(this.enabled, task.enabled) &&
244258
Objects.equals(this.failureThreshold, task.failureThreshold) &&
245259
Objects.equals(this.action, task.action) &&
260+
Objects.equals(this.subscriptionAction, task.subscriptionAction) &&
246261
Objects.equals(this.cursor, task.cursor) &&
247262
Objects.equals(this.notifications, task.notifications) &&
248263
Objects.equals(this.policies, task.policies) &&
@@ -264,6 +279,7 @@ public int hashCode() {
264279
enabled,
265280
failureThreshold,
266281
action,
282+
subscriptionAction,
267283
cursor,
268284
notifications,
269285
policies,
@@ -286,6 +302,7 @@ public String toString() {
286302
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
287303
sb.append(" failureThreshold: ").append(toIndentedString(failureThreshold)).append("\n");
288304
sb.append(" action: ").append(toIndentedString(action)).append("\n");
305+
sb.append(" subscriptionAction: ").append(toIndentedString(subscriptionAction)).append("\n");
289306
sb.append(" cursor: ").append(toIndentedString(cursor)).append("\n");
290307
sb.append(" notifications: ").append(toIndentedString(notifications)).append("\n");
291308
sb.append(" policies: ").append(toIndentedString(policies)).append("\n");

algoliasearch/src/main/java/com/algolia/model/ingestion/TaskCreate.java

+29-1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ public class TaskCreate {
1919
@JsonProperty("action")
2020
private ActionType action;
2121

22+
@JsonProperty("subscriptionAction")
23+
private ActionType subscriptionAction;
24+
2225
@JsonProperty("cron")
2326
private String cron;
2427

@@ -73,6 +76,17 @@ public ActionType getAction() {
7376
return action;
7477
}
7578

79+
public TaskCreate setSubscriptionAction(ActionType subscriptionAction) {
80+
this.subscriptionAction = subscriptionAction;
81+
return this;
82+
}
83+
84+
/** Get subscriptionAction */
85+
@javax.annotation.Nullable
86+
public ActionType getSubscriptionAction() {
87+
return subscriptionAction;
88+
}
89+
7690
public TaskCreate setCron(String cron) {
7791
this.cron = cron;
7892
return this;
@@ -166,6 +180,7 @@ public boolean equals(Object o) {
166180
Objects.equals(this.sourceID, taskCreate.sourceID) &&
167181
Objects.equals(this.destinationID, taskCreate.destinationID) &&
168182
Objects.equals(this.action, taskCreate.action) &&
183+
Objects.equals(this.subscriptionAction, taskCreate.subscriptionAction) &&
169184
Objects.equals(this.cron, taskCreate.cron) &&
170185
Objects.equals(this.enabled, taskCreate.enabled) &&
171186
Objects.equals(this.failureThreshold, taskCreate.failureThreshold) &&
@@ -178,7 +193,19 @@ public boolean equals(Object o) {
178193

179194
@Override
180195
public int hashCode() {
181-
return Objects.hash(sourceID, destinationID, action, cron, enabled, failureThreshold, input, cursor, notifications, policies);
196+
return Objects.hash(
197+
sourceID,
198+
destinationID,
199+
action,
200+
subscriptionAction,
201+
cron,
202+
enabled,
203+
failureThreshold,
204+
input,
205+
cursor,
206+
notifications,
207+
policies
208+
);
182209
}
183210

184211
@Override
@@ -188,6 +215,7 @@ public String toString() {
188215
sb.append(" sourceID: ").append(toIndentedString(sourceID)).append("\n");
189216
sb.append(" destinationID: ").append(toIndentedString(destinationID)).append("\n");
190217
sb.append(" action: ").append(toIndentedString(action)).append("\n");
218+
sb.append(" subscriptionAction: ").append(toIndentedString(subscriptionAction)).append("\n");
191219
sb.append(" cron: ").append(toIndentedString(cron)).append("\n");
192220
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
193221
sb.append(" failureThreshold: ").append(toIndentedString(failureThreshold)).append("\n");

algoliasearch/src/main/java/com/algolia/model/ingestion/TaskUpdate.java

+17-1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ public class TaskUpdate {
2222
@JsonProperty("enabled")
2323
private Boolean enabled;
2424

25+
@JsonProperty("subscriptionAction")
26+
private ActionType subscriptionAction;
27+
2528
@JsonProperty("failureThreshold")
2629
private Integer failureThreshold;
2730

@@ -75,6 +78,17 @@ public Boolean getEnabled() {
7578
return enabled;
7679
}
7780

81+
public TaskUpdate setSubscriptionAction(ActionType subscriptionAction) {
82+
this.subscriptionAction = subscriptionAction;
83+
return this;
84+
}
85+
86+
/** Get subscriptionAction */
87+
@javax.annotation.Nullable
88+
public ActionType getSubscriptionAction() {
89+
return subscriptionAction;
90+
}
91+
7892
public TaskUpdate setFailureThreshold(Integer failureThreshold) {
7993
this.failureThreshold = failureThreshold;
8094
return this;
@@ -125,6 +139,7 @@ public boolean equals(Object o) {
125139
Objects.equals(this.cron, taskUpdate.cron) &&
126140
Objects.equals(this.input, taskUpdate.input) &&
127141
Objects.equals(this.enabled, taskUpdate.enabled) &&
142+
Objects.equals(this.subscriptionAction, taskUpdate.subscriptionAction) &&
128143
Objects.equals(this.failureThreshold, taskUpdate.failureThreshold) &&
129144
Objects.equals(this.notifications, taskUpdate.notifications) &&
130145
Objects.equals(this.policies, taskUpdate.policies)
@@ -133,7 +148,7 @@ public boolean equals(Object o) {
133148

134149
@Override
135150
public int hashCode() {
136-
return Objects.hash(destinationID, cron, input, enabled, failureThreshold, notifications, policies);
151+
return Objects.hash(destinationID, cron, input, enabled, subscriptionAction, failureThreshold, notifications, policies);
137152
}
138153

139154
@Override
@@ -144,6 +159,7 @@ public String toString() {
144159
sb.append(" cron: ").append(toIndentedString(cron)).append("\n");
145160
sb.append(" input: ").append(toIndentedString(input)).append("\n");
146161
sb.append(" enabled: ").append(toIndentedString(enabled)).append("\n");
162+
sb.append(" subscriptionAction: ").append(toIndentedString(subscriptionAction)).append("\n");
147163
sb.append(" failureThreshold: ").append(toIndentedString(failureThreshold)).append("\n");
148164
sb.append(" notifications: ").append(toIndentedString(notifications)).append("\n");
149165
sb.append(" policies: ").append(toIndentedString(policies)).append("\n");

0 commit comments

Comments
 (0)