lib/hubspot/codegen/crm/timeline/models/error_detail.rb in hubspot-api-client-17.2.0 vs lib/hubspot/codegen/crm/timeline/models/error_detail.rb in hubspot-api-client-18.0.0
- old
+ new
@@ -1,7 +1,7 @@
=begin
-#Timeline events
+#CRM Timeline
#This feature allows an app to create and configure custom events that can show up in the timelines of certain CRM objects like contacts, companies, tickets, or deals. You'll find multiple use cases for this API in the sections below.
The version of the OpenAPI document: v3
@@ -15,33 +15,33 @@
module Hubspot
module Crm
module Timeline
class ErrorDetail
- # A human readable message describing the error along with remediation steps where appropriate
- attr_accessor :message
+ # A specific category that contains more specific detail about the error
+ attr_accessor :sub_category
- # The name of the field or parameter in which the error was found.
- attr_accessor :_in
-
# The status code associated with the error detail
attr_accessor :code
- # A specific category that contains more specific detail about the error
- attr_accessor :sub_category
+ # The name of the field or parameter in which the error was found.
+ attr_accessor :_in
# Context about the error condition
attr_accessor :context
+ # A human readable message describing the error along with remediation steps where appropriate
+ attr_accessor :message
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
- :'message' => :'message',
- :'_in' => :'in',
- :'code' => :'code',
:'sub_category' => :'subCategory',
- :'context' => :'context'
+ :'code' => :'code',
+ :'_in' => :'in',
+ :'context' => :'context',
+ :'message' => :'message'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -49,15 +49,15 @@
end
# Attribute type mapping.
def self.openapi_types
{
- :'message' => :'String',
- :'_in' => :'String',
- :'code' => :'String',
:'sub_category' => :'String',
- :'context' => :'Hash<String, Array<String>>'
+ :'code' => :'String',
+ :'_in' => :'String',
+ :'context' => :'Hash<String, Array<String>>',
+ :'message' => :'String'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
@@ -78,31 +78,31 @@
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Timeline::ErrorDetail`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
end
h[k.to_sym] = v
}
- if attributes.key?(:'message')
- self.message = attributes[:'message']
+ if attributes.key?(:'sub_category')
+ self.sub_category = attributes[:'sub_category']
end
- if attributes.key?(:'_in')
- self._in = attributes[:'_in']
- end
-
if attributes.key?(:'code')
self.code = attributes[:'code']
end
- if attributes.key?(:'sub_category')
- self.sub_category = attributes[:'sub_category']
+ if attributes.key?(:'_in')
+ self._in = attributes[:'_in']
end
if attributes.key?(:'context')
if (value = attributes[:'context']).is_a?(Hash)
self.context = value
end
end
+
+ if attributes.key?(:'message')
+ self.message = attributes[:'message']
+ end
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properties with the reasons
def list_invalid_properties
@@ -124,15 +124,15 @@
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
- message == o.message &&
- _in == o._in &&
- code == o.code &&
sub_category == o.sub_category &&
- context == o.context
+ code == o.code &&
+ _in == o._in &&
+ context == o.context &&
+ message == o.message
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -140,10 +140,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [message, _in, code, sub_category, context].hash
+ [sub_category, code, _in, context, message].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself