Skip to content

Commit 095aa04

Browse files
algolia-botkombucha
andcommitted
feat(specs): add missing message attribute to GetObjectsResponse [skip-bc] (generated)
algolia/api-clients-automation#4029 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Vincent Lemeunier <[email protected]>
1 parent 18fbb9e commit 095aa04

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

lib/algolia/models/search/get_objects_response.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,16 @@
66
module Algolia
77
module Search
88
class GetObjectsResponse
9+
# An optional status message.
10+
attr_accessor :message
11+
912
# Retrieved records.
1013
attr_accessor :results
1114

1215
# Attribute mapping from ruby-style variable name to JSON key.
1316
def self.attribute_map
1417
{
18+
:message => :message,
1519
:results => :results
1620
}
1721
end
@@ -24,6 +28,7 @@ def self.acceptable_attributes
2428
# Attribute type mapping.
2529
def self.types_mapping
2630
{
31+
:message => :"String",
2732
:results => :"Array<Object>"
2833
}
2934
end
@@ -58,6 +63,10 @@ def initialize(attributes = {})
5863
h[k.to_sym] = v
5964
}
6065

66+
if attributes.key?(:message)
67+
self.message = attributes[:message]
68+
end
69+
6170
if attributes.key?(:results)
6271
if (value = attributes[:results]).is_a?(Array)
6372
self.results = value
@@ -72,6 +81,7 @@ def initialize(attributes = {})
7281
def ==(other)
7382
return true if self.equal?(other)
7483
self.class == other.class &&
84+
message == other.message &&
7585
results == other.results
7686
end
7787

@@ -84,7 +94,7 @@ def eql?(other)
8494
# Calculates hash code according to all attributes.
8595
# @return [Integer] Hash code
8696
def hash
87-
[results].hash
97+
[message, results].hash
8898
end
8999

90100
# Builds the object from hash

0 commit comments

Comments
 (0)