@@ -11,6 +11,9 @@ class WatchResponse
11
11
# Universally unique identifier (UUID) of a task run.
12
12
attr_accessor :run_id
13
13
14
+ # Universally unique identifier (UUID) of an event.
15
+ attr_accessor :event_id
16
+
14
17
# when used with discovering or validating sources, the sampled data of your source is returned.
15
18
attr_accessor :data
16
19
@@ -20,23 +23,30 @@ class WatchResponse
20
23
# a message describing the outcome of a validate run.
21
24
attr_accessor :message
22
25
26
+ # Date of creation in RFC 3339 format.
27
+ attr_accessor :created_at
28
+
23
29
# Attribute mapping from ruby-style variable name to JSON key.
24
30
def self . attribute_map
25
31
{
26
32
:run_id => :runID ,
33
+ :event_id => :eventID ,
27
34
:data => :data ,
28
35
:events => :events ,
29
- :message => :message
36
+ :message => :message ,
37
+ :created_at => :createdAt
30
38
}
31
39
end
32
40
33
41
# Attribute type mapping.
34
42
def self . types_mapping
35
43
{
36
44
:run_id => :"String" ,
45
+ :event_id => :"String" ,
37
46
:data => :"Array<Object>" ,
38
47
:events => :"Array<Event>" ,
39
- :message => :"String"
48
+ :message => :"String" ,
49
+ :created_at => :"String"
40
50
}
41
51
end
42
52
@@ -76,6 +86,10 @@ def initialize(attributes = {})
76
86
self . run_id = nil
77
87
end
78
88
89
+ if attributes . key? ( :event_id )
90
+ self . event_id = attributes [ :event_id ]
91
+ end
92
+
79
93
if attributes . key? ( :data )
80
94
if ( value = attributes [ :data ] ) . is_a? ( Array )
81
95
self . data = value
@@ -91,6 +105,10 @@ def initialize(attributes = {})
91
105
if attributes . key? ( :message )
92
106
self . message = attributes [ :message ]
93
107
end
108
+
109
+ if attributes . key? ( :created_at )
110
+ self . created_at = attributes [ :created_at ]
111
+ end
94
112
end
95
113
96
114
# Checks equality by comparing each attribute.
@@ -99,9 +117,11 @@ def ==(other)
99
117
return true if self . equal? ( other )
100
118
self . class == other . class &&
101
119
run_id == other . run_id &&
120
+ event_id == other . event_id &&
102
121
data == other . data &&
103
122
events == other . events &&
104
- message == other . message
123
+ message == other . message &&
124
+ created_at == other . created_at
105
125
end
106
126
107
127
# @see the `==` method
@@ -113,7 +133,7 @@ def eql?(other)
113
133
# Calculates hash code according to all attributes.
114
134
# @return [Integer] Hash code
115
135
def hash
116
- [ run_id , data , events , message ] . hash
136
+ [ run_id , event_id , data , events , message , created_at ] . hash
117
137
end
118
138
119
139
# Builds the object from hash
0 commit comments