Skip to content

Commit 3ffcca7

Browse files
fix(specs): updated watchResponse (generated)
algolia/api-clients-automation#4879 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Clément Vannicatte <[email protected]>
1 parent d602c5f commit 3ffcca7

File tree

1 file changed

+24
-4
lines changed

1 file changed

+24
-4
lines changed

lib/algolia/models/ingestion/watch_response.rb

Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ class WatchResponse
1111
# Universally unique identifier (UUID) of a task run.
1212
attr_accessor :run_id
1313

14+
# Universally unique identifier (UUID) of an event.
15+
attr_accessor :event_id
16+
1417
# when used with discovering or validating sources, the sampled data of your source is returned.
1518
attr_accessor :data
1619

@@ -20,23 +23,30 @@ class WatchResponse
2023
# a message describing the outcome of a validate run.
2124
attr_accessor :message
2225

26+
# Date of creation in RFC 3339 format.
27+
attr_accessor :created_at
28+
2329
# Attribute mapping from ruby-style variable name to JSON key.
2430
def self.attribute_map
2531
{
2632
:run_id => :runID,
33+
:event_id => :eventID,
2734
:data => :data,
2835
:events => :events,
29-
:message => :message
36+
:message => :message,
37+
:created_at => :createdAt
3038
}
3139
end
3240

3341
# Attribute type mapping.
3442
def self.types_mapping
3543
{
3644
:run_id => :"String",
45+
:event_id => :"String",
3746
:data => :"Array<Object>",
3847
:events => :"Array<Event>",
39-
:message => :"String"
48+
:message => :"String",
49+
:created_at => :"String"
4050
}
4151
end
4252

@@ -76,6 +86,10 @@ def initialize(attributes = {})
7686
self.run_id = nil
7787
end
7888

89+
if attributes.key?(:event_id)
90+
self.event_id = attributes[:event_id]
91+
end
92+
7993
if attributes.key?(:data)
8094
if (value = attributes[:data]).is_a?(Array)
8195
self.data = value
@@ -91,6 +105,10 @@ def initialize(attributes = {})
91105
if attributes.key?(:message)
92106
self.message = attributes[:message]
93107
end
108+
109+
if attributes.key?(:created_at)
110+
self.created_at = attributes[:created_at]
111+
end
94112
end
95113

96114
# Checks equality by comparing each attribute.
@@ -99,9 +117,11 @@ def ==(other)
99117
return true if self.equal?(other)
100118
self.class == other.class &&
101119
run_id == other.run_id &&
120+
event_id == other.event_id &&
102121
data == other.data &&
103122
events == other.events &&
104-
message == other.message
123+
message == other.message &&
124+
created_at == other.created_at
105125
end
106126

107127
# @see the `==` method
@@ -113,7 +133,7 @@ def eql?(other)
113133
# Calculates hash code according to all attributes.
114134
# @return [Integer] Hash code
115135
def hash
116-
[run_id, data, events, message].hash
136+
[run_id, event_id, data, events, message, created_at].hash
117137
end
118138

119139
# Builds the object from hash

0 commit comments

Comments
 (0)