Skip to content

Commit 1f1596f

Browse files
fix(specs): updated watchResponse (#4879) (generated) [skip ci]
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent cf416e6 commit 1f1596f

File tree

46 files changed

+416
-119
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+416
-119
lines changed

clients/algoliasearch-client-csharp/algoliasearch/Models/Ingestion/WatchResponse.cs

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,13 @@ public WatchResponse(string runID)
3838
[JsonPropertyName("runID")]
3939
public string RunID { get; set; }
4040

41+
/// <summary>
42+
/// Universally unique identifier (UUID) of an event.
43+
/// </summary>
44+
/// <value>Universally unique identifier (UUID) of an event.</value>
45+
[JsonPropertyName("eventID")]
46+
public string EventID { get; set; }
47+
4148
/// <summary>
4249
/// when used with discovering or validating sources, the sampled data of your source is returned.
4350
/// </summary>
@@ -59,6 +66,13 @@ public WatchResponse(string runID)
5966
[JsonPropertyName("message")]
6067
public string Message { get; set; }
6168

69+
/// <summary>
70+
/// Date of creation in RFC 3339 format.
71+
/// </summary>
72+
/// <value>Date of creation in RFC 3339 format.</value>
73+
[JsonPropertyName("createdAt")]
74+
public string CreatedAt { get; set; }
75+
6276
/// <summary>
6377
/// Returns the string presentation of the object
6478
/// </summary>
@@ -68,9 +82,11 @@ public override string ToString()
6882
StringBuilder sb = new StringBuilder();
6983
sb.Append("class WatchResponse {\n");
7084
sb.Append(" RunID: ").Append(RunID).Append("\n");
85+
sb.Append(" EventID: ").Append(EventID).Append("\n");
7186
sb.Append(" Data: ").Append(Data).Append("\n");
7287
sb.Append(" Events: ").Append(Events).Append("\n");
7388
sb.Append(" Message: ").Append(Message).Append("\n");
89+
sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n");
7490
sb.Append("}\n");
7591
return sb.ToString();
7692
}
@@ -97,14 +113,16 @@ public override bool Equals(object obj)
97113
}
98114

99115
return (RunID == input.RunID || (RunID != null && RunID.Equals(input.RunID)))
116+
&& (EventID == input.EventID || (EventID != null && EventID.Equals(input.EventID)))
100117
&& (
101118
Data == input.Data || Data != null && input.Data != null && Data.SequenceEqual(input.Data)
102119
)
103120
&& (
104121
Events == input.Events
105122
|| Events != null && input.Events != null && Events.SequenceEqual(input.Events)
106123
)
107-
&& (Message == input.Message || (Message != null && Message.Equals(input.Message)));
124+
&& (Message == input.Message || (Message != null && Message.Equals(input.Message)))
125+
&& (CreatedAt == input.CreatedAt || (CreatedAt != null && CreatedAt.Equals(input.CreatedAt)));
108126
}
109127

110128
/// <summary>
@@ -120,6 +138,10 @@ public override int GetHashCode()
120138
{
121139
hashCode = (hashCode * 59) + RunID.GetHashCode();
122140
}
141+
if (EventID != null)
142+
{
143+
hashCode = (hashCode * 59) + EventID.GetHashCode();
144+
}
123145
if (Data != null)
124146
{
125147
hashCode = (hashCode * 59) + Data.GetHashCode();
@@ -132,6 +154,10 @@ public override int GetHashCode()
132154
{
133155
hashCode = (hashCode * 59) + Message.GetHashCode();
134156
}
157+
if (CreatedAt != null)
158+
{
159+
hashCode = (hashCode * 59) + CreatedAt.GetHashCode();
160+
}
135161
return hashCode;
136162
}
137163
}

clients/algoliasearch-client-go/algolia/ingestion/model_watch_response.go

Lines changed: 90 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

clients/algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/model/ingestion/WatchResponse.java

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ public class WatchResponse {
1515
@JsonProperty("runID")
1616
private String runID;
1717

18+
@JsonProperty("eventID")
19+
private String eventID;
20+
1821
@JsonProperty("data")
1922
private List<Object> data;
2023

@@ -24,6 +27,9 @@ public class WatchResponse {
2427
@JsonProperty("message")
2528
private String message;
2629

30+
@JsonProperty("createdAt")
31+
private String createdAt;
32+
2733
public WatchResponse setRunID(String runID) {
2834
this.runID = runID;
2935
return this;
@@ -35,6 +41,17 @@ public String getRunID() {
3541
return runID;
3642
}
3743

44+
public WatchResponse setEventID(String eventID) {
45+
this.eventID = eventID;
46+
return this;
47+
}
48+
49+
/** Universally unique identifier (UUID) of an event. */
50+
@javax.annotation.Nullable
51+
public String getEventID() {
52+
return eventID;
53+
}
54+
3855
public WatchResponse setData(List<Object> data) {
3956
this.data = data;
4057
return this;
@@ -86,6 +103,17 @@ public String getMessage() {
86103
return message;
87104
}
88105

106+
public WatchResponse setCreatedAt(String createdAt) {
107+
this.createdAt = createdAt;
108+
return this;
109+
}
110+
111+
/** Date of creation in RFC 3339 format. */
112+
@javax.annotation.Nullable
113+
public String getCreatedAt() {
114+
return createdAt;
115+
}
116+
89117
@Override
90118
public boolean equals(Object o) {
91119
if (this == o) {
@@ -97,25 +125,29 @@ public boolean equals(Object o) {
97125
WatchResponse watchResponse = (WatchResponse) o;
98126
return (
99127
Objects.equals(this.runID, watchResponse.runID) &&
128+
Objects.equals(this.eventID, watchResponse.eventID) &&
100129
Objects.equals(this.data, watchResponse.data) &&
101130
Objects.equals(this.events, watchResponse.events) &&
102-
Objects.equals(this.message, watchResponse.message)
131+
Objects.equals(this.message, watchResponse.message) &&
132+
Objects.equals(this.createdAt, watchResponse.createdAt)
103133
);
104134
}
105135

106136
@Override
107137
public int hashCode() {
108-
return Objects.hash(runID, data, events, message);
138+
return Objects.hash(runID, eventID, data, events, message, createdAt);
109139
}
110140

111141
@Override
112142
public String toString() {
113143
StringBuilder sb = new StringBuilder();
114144
sb.append("class WatchResponse {\n");
115145
sb.append(" runID: ").append(toIndentedString(runID)).append("\n");
146+
sb.append(" eventID: ").append(toIndentedString(eventID)).append("\n");
116147
sb.append(" data: ").append(toIndentedString(data)).append("\n");
117148
sb.append(" events: ").append(toIndentedString(events)).append("\n");
118149
sb.append(" message: ").append(toIndentedString(message)).append("\n");
150+
sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n");
119151
sb.append("}");
120152
return sb.toString();
121153
}

clients/algoliasearch-client-javascript/packages/ingestion/model/watchResponse.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ export type WatchResponse = {
88
*/
99
runID: string;
1010

11+
/**
12+
* Universally unique identifier (UUID) of an event.
13+
*/
14+
eventID?: string;
15+
1116
/**
1217
* when used with discovering or validating sources, the sampled data of your source is returned.
1318
*/
@@ -22,4 +27,9 @@ export type WatchResponse = {
2227
* a message describing the outcome of a validate run.
2328
*/
2429
message?: string;
30+
31+
/**
32+
* Date of creation in RFC 3339 format.
33+
*/
34+
createdAt?: string;
2535
};

clients/algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/model/ingestion/WatchResponse.kt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,21 @@ import kotlinx.serialization.json.*
88
* WatchResponse
99
*
1010
* @param runID Universally unique identifier (UUID) of a task run.
11+
* @param eventID Universally unique identifier (UUID) of an event.
1112
* @param `data` when used with discovering or validating sources, the sampled data of your source is returned.
1213
* @param events in case of error, observability events will be added to the response, if any.
1314
* @param message a message describing the outcome of a validate run.
15+
* @param createdAt Date of creation in RFC 3339 format.
1416
*/
1517
@Serializable
1618
public data class WatchResponse(
1719

1820
/** Universally unique identifier (UUID) of a task run. */
1921
@SerialName(value = "runID") val runID: String,
2022

23+
/** Universally unique identifier (UUID) of an event. */
24+
@SerialName(value = "eventID") val eventID: String? = null,
25+
2126
/** when used with discovering or validating sources, the sampled data of your source is returned. */
2227
@SerialName(value = "data") val `data`: List<JsonObject>? = null,
2328

@@ -26,4 +31,7 @@ public data class WatchResponse(
2631

2732
/** a message describing the outcome of a validate run. */
2833
@SerialName(value = "message") val message: String? = null,
34+
35+
/** Date of creation in RFC 3339 format. */
36+
@SerialName(value = "createdAt") val createdAt: String? = null,
2937
)

0 commit comments

Comments
 (0)