Skip to content

Commit d495de2

Browse files
fix(specs): remove from ingestion specs [skip-bc] (#3981) (generated) [skip-ci]
Co-authored-by: Clément Vannicatte <[email protected]>
1 parent 451bf71 commit d495de2

File tree

12 files changed

+5
-152
lines changed
  • clients
    • algoliasearch-client-csharp/algoliasearch/Models/Ingestion
    • algoliasearch-client-go/algolia/ingestion
    • algoliasearch-client-java/algoliasearch/src/main/java/com/algolia/model/ingestion
    • algoliasearch-client-javascript/packages/ingestion/model
    • algoliasearch-client-kotlin/client/src/commonMain/kotlin/com/algolia/client/model/ingestion
    • algoliasearch-client-php/lib/Model/Ingestion
    • algoliasearch-client-python/algoliasearch/ingestion/models
    • algoliasearch-client-ruby/lib/algolia/models/ingestion
    • algoliasearch-client-scala/src/main/scala/algoliasearch/ingestion
    • algoliasearch-client-swift/Sources/Ingestion/Models
  • specs/bundled

12 files changed

+5
-152
lines changed

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

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,6 @@ public Event(string eventID, string runID, EventStatus? status, EventType? type,
6666
[JsonPropertyName("runID")]
6767
public string RunID { get; set; }
6868

69-
/// <summary>
70-
/// The parent event, the cause of this event.
71-
/// </summary>
72-
/// <value>The parent event, the cause of this event.</value>
73-
[JsonPropertyName("parentID")]
74-
public string ParentID { get; set; }
75-
7669
/// <summary>
7770
/// The extracted record batch size.
7871
/// </summary>
@@ -103,7 +96,6 @@ public override string ToString()
10396
sb.Append("class Event {\n");
10497
sb.Append(" EventID: ").Append(EventID).Append("\n");
10598
sb.Append(" RunID: ").Append(RunID).Append("\n");
106-
sb.Append(" ParentID: ").Append(ParentID).Append("\n");
10799
sb.Append(" Status: ").Append(Status).Append("\n");
108100
sb.Append(" Type: ").Append(Type).Append("\n");
109101
sb.Append(" BatchSize: ").Append(BatchSize).Append("\n");
@@ -137,7 +129,6 @@ public override bool Equals(object obj)
137129
return
138130
(EventID == input.EventID || (EventID != null && EventID.Equals(input.EventID))) &&
139131
(RunID == input.RunID || (RunID != null && RunID.Equals(input.RunID))) &&
140-
(ParentID == input.ParentID || (ParentID != null && ParentID.Equals(input.ParentID))) &&
141132
(Status == input.Status || Status.Equals(input.Status)) &&
142133
(Type == input.Type || Type.Equals(input.Type)) &&
143134
(BatchSize == input.BatchSize || BatchSize.Equals(input.BatchSize)) &&
@@ -162,10 +153,6 @@ public override int GetHashCode()
162153
{
163154
hashCode = (hashCode * 59) + RunID.GetHashCode();
164155
}
165-
if (ParentID != null)
166-
{
167-
hashCode = (hashCode * 59) + ParentID.GetHashCode();
168-
}
169156
hashCode = (hashCode * 59) + Status.GetHashCode();
170157
hashCode = (hashCode * 59) + Type.GetHashCode();
171158
hashCode = (hashCode * 59) + BatchSize.GetHashCode();

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

Lines changed: 3 additions & 48 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/Event.java

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@ public class Event {
1818
@JsonProperty("runID")
1919
private String runID;
2020

21-
@JsonProperty("parentID")
22-
private String parentID;
23-
2421
@JsonProperty("status")
2522
private EventStatus status;
2623

@@ -58,17 +55,6 @@ public String getRunID() {
5855
return runID;
5956
}
6057

61-
public Event setParentID(String parentID) {
62-
this.parentID = parentID;
63-
return this;
64-
}
65-
66-
/** The parent event, the cause of this event. */
67-
@javax.annotation.Nullable
68-
public String getParentID() {
69-
return parentID;
70-
}
71-
7258
public Event setStatus(EventStatus status) {
7359
this.status = status;
7460
return this;
@@ -144,7 +130,6 @@ public boolean equals(Object o) {
144130
return (
145131
Objects.equals(this.eventID, event.eventID) &&
146132
Objects.equals(this.runID, event.runID) &&
147-
Objects.equals(this.parentID, event.parentID) &&
148133
Objects.equals(this.status, event.status) &&
149134
Objects.equals(this.type, event.type) &&
150135
Objects.equals(this.batchSize, event.batchSize) &&
@@ -155,7 +140,7 @@ public boolean equals(Object o) {
155140

156141
@Override
157142
public int hashCode() {
158-
return Objects.hash(eventID, runID, parentID, status, type, batchSize, data, publishedAt);
143+
return Objects.hash(eventID, runID, status, type, batchSize, data, publishedAt);
159144
}
160145

161146
@Override
@@ -164,7 +149,6 @@ public String toString() {
164149
sb.append("class Event {\n");
165150
sb.append(" eventID: ").append(toIndentedString(eventID)).append("\n");
166151
sb.append(" runID: ").append(toIndentedString(runID)).append("\n");
167-
sb.append(" parentID: ").append(toIndentedString(parentID)).append("\n");
168152
sb.append(" status: ").append(toIndentedString(status)).append("\n");
169153
sb.append(" type: ").append(toIndentedString(type)).append("\n");
170154
sb.append(" batchSize: ").append(toIndentedString(batchSize)).append("\n");

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

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,6 @@ export type Event = {
1717
*/
1818
runID: string;
1919

20-
/**
21-
* The parent event, the cause of this event.
22-
*/
23-
parentID?: string;
24-
2520
status: EventStatus;
2621

2722
type: EventType;

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ import kotlinx.serialization.json.*
1313
* @param type
1414
* @param batchSize The extracted record batch size.
1515
* @param publishedAt Date of publish RFC 3339 format.
16-
* @param parentID The parent event, the cause of this event.
1716
* @param `data`
1817
*/
1918
@Serializable
@@ -35,8 +34,5 @@ public data class Event(
3534
/** Date of publish RFC 3339 format. */
3635
@SerialName(value = "publishedAt") val publishedAt: String,
3736

38-
/** The parent event, the cause of this event. */
39-
@SerialName(value = "parentID") val parentID: String? = null,
40-
4137
@SerialName(value = "data") val `data`: JsonObject? = null,
4238
)

clients/algoliasearch-client-php/lib/Model/Ingestion/Event.php

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ class Event extends AbstractModel implements ModelInterface, \ArrayAccess, \Json
2424
protected static $modelTypes = [
2525
'eventID' => 'string',
2626
'runID' => 'string',
27-
'parentID' => 'string',
2827
'status' => '\Algolia\AlgoliaSearch\Model\Ingestion\EventStatus',
2928
'type' => '\Algolia\AlgoliaSearch\Model\Ingestion\EventType',
3029
'batchSize' => 'int',
@@ -40,7 +39,6 @@ class Event extends AbstractModel implements ModelInterface, \ArrayAccess, \Json
4039
protected static $modelFormats = [
4140
'eventID' => null,
4241
'runID' => null,
43-
'parentID' => null,
4442
'status' => null,
4543
'type' => null,
4644
'batchSize' => null,
@@ -57,7 +55,6 @@ class Event extends AbstractModel implements ModelInterface, \ArrayAccess, \Json
5755
protected static $attributeMap = [
5856
'eventID' => 'eventID',
5957
'runID' => 'runID',
60-
'parentID' => 'parentID',
6158
'status' => 'status',
6259
'type' => 'type',
6360
'batchSize' => 'batchSize',
@@ -73,7 +70,6 @@ class Event extends AbstractModel implements ModelInterface, \ArrayAccess, \Json
7370
protected static $setters = [
7471
'eventID' => 'setEventID',
7572
'runID' => 'setRunID',
76-
'parentID' => 'setParentID',
7773
'status' => 'setStatus',
7874
'type' => 'setType',
7975
'batchSize' => 'setBatchSize',
@@ -89,7 +85,6 @@ class Event extends AbstractModel implements ModelInterface, \ArrayAccess, \Json
8985
protected static $getters = [
9086
'eventID' => 'getEventID',
9187
'runID' => 'getRunID',
92-
'parentID' => 'getParentID',
9388
'status' => 'getStatus',
9489
'type' => 'getType',
9590
'batchSize' => 'getBatchSize',
@@ -117,9 +112,6 @@ public function __construct(?array $data = null)
117112
if (isset($data['runID'])) {
118113
$this->container['runID'] = $data['runID'];
119114
}
120-
if (isset($data['parentID'])) {
121-
$this->container['parentID'] = $data['parentID'];
122-
}
123115
if (isset($data['status'])) {
124116
$this->container['status'] = $data['status'];
125117
}
@@ -278,30 +270,6 @@ public function setRunID($runID)
278270
return $this;
279271
}
280272

281-
/**
282-
* Gets parentID.
283-
*
284-
* @return null|string
285-
*/
286-
public function getParentID()
287-
{
288-
return $this->container['parentID'] ?? null;
289-
}
290-
291-
/**
292-
* Sets parentID.
293-
*
294-
* @param null|string $parentID the parent event, the cause of this event
295-
*
296-
* @return self
297-
*/
298-
public function setParentID($parentID)
299-
{
300-
$this->container['parentID'] = $parentID;
301-
302-
return $this;
303-
}
304-
305273
/**
306274
* Gets status.
307275
*

clients/algoliasearch-client-python/algoliasearch/ingestion/models/event.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@
2424
_ALIASES = {
2525
"event_id": "eventID",
2626
"run_id": "runID",
27-
"parent_id": "parentID",
2827
"status": "status",
2928
"type": "type",
3029
"batch_size": "batchSize",
@@ -46,8 +45,6 @@ class Event(BaseModel):
4645
""" Universally unique identifier (UUID) of an event. """
4746
run_id: str
4847
""" Universally unique identifier (UUID) of a task run. """
49-
parent_id: Optional[str] = None
50-
""" The parent event, the cause of this event. """
5148
status: EventStatus
5249
type: EventType
5350
batch_size: int

clients/algoliasearch-client-ruby/lib/algolia/models/ingestion/event.rb

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ class Event
1313
# Universally unique identifier (UUID) of a task run.
1414
attr_accessor :run_id
1515

16-
# The parent event, the cause of this event.
17-
attr_accessor :parent_id
18-
1916
attr_accessor :status
2017

2118
attr_accessor :type
@@ -33,7 +30,6 @@ def self.attribute_map
3330
{
3431
:event_id => :eventID,
3532
:run_id => :runID,
36-
:parent_id => :parentID,
3733
:status => :status,
3834
:type => :type,
3935
:batch_size => :batchSize,
@@ -52,7 +48,6 @@ def self.types_mapping
5248
{
5349
:event_id => :"String",
5450
:run_id => :"String",
55-
:parent_id => :"String",
5651
:status => :"EventStatus",
5752
:type => :"EventType",
5853
:batch_size => :"Integer",
@@ -100,10 +95,6 @@ def initialize(attributes = {})
10095
self.run_id = nil
10196
end
10297

103-
if attributes.key?(:parent_id)
104-
self.parent_id = attributes[:parent_id]
105-
end
106-
10798
if attributes.key?(:status)
10899
self.status = attributes[:status]
109100
else
@@ -142,7 +133,6 @@ def ==(other)
142133
self.class == other.class &&
143134
event_id == other.event_id &&
144135
run_id == other.run_id &&
145-
parent_id == other.parent_id &&
146136
status == other.status &&
147137
type == other.type &&
148138
batch_size == other.batch_size &&
@@ -159,7 +149,7 @@ def eql?(other)
159149
# Calculates hash code according to all attributes.
160150
# @return [Integer] Hash code
161151
def hash
162-
[event_id, run_id, parent_id, status, type, batch_size, data, published_at].hash
152+
[event_id, run_id, status, type, batch_size, data, published_at].hash
163153
end
164154

165155
# Builds the object from hash

clients/algoliasearch-client-scala/src/main/scala/algoliasearch/ingestion/Event.scala

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,6 @@ import algoliasearch.ingestion.EventType._
2929
* Universally unique identifier (UUID) of an event.
3030
* @param runID
3131
* Universally unique identifier (UUID) of a task run.
32-
* @param parentID
33-
* The parent event, the cause of this event.
3432
* @param batchSize
3533
* The extracted record batch size.
3634
* @param publishedAt
@@ -39,7 +37,6 @@ import algoliasearch.ingestion.EventType._
3937
case class Event(
4038
eventID: String,
4139
runID: String,
42-
parentID: Option[String] = scala.None,
4340
status: EventStatus,
4441
`type`: EventType,
4542
batchSize: Int,

0 commit comments

Comments
 (0)