lib/hubspot/codegen/crm/owners/models/error_detail.rb in hubspot-api-client-2.0.0 vs lib/hubspot/codegen/crm/owners/models/error_detail.rb in hubspot-api-client-2.1.0
- old
+ new
@@ -4,11 +4,11 @@
#HubSpot uses **owners** to assign CRM objects to specific people in your organization. The endpoints described here are used to get a list of the owners that are available for an account. To assign an owner to an object, set the hubspot_owner_id property using the appropriate CRM object update or create a request. If teams are available for your HubSpot tier, these endpoints will also indicate which team an owner belongs to. Team membership can be one of PRIMARY (default), SECONDARY, or CHILD.
The version of the OpenAPI document: v3
Generated by: https://openapi-generator.tech
-OpenAPI Generator version: 4.2.2
+OpenAPI Generator version: 4.2.3
=end
require 'date'
@@ -20,27 +20,37 @@
attr_accessor :message
# 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
+
# Context about the error condition
attr_accessor :context
# 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'
}
end
# Attribute type mapping.
def self.openapi_types
{
:'message' => :'String',
:'_in' => :'String',
+ :'code' => :'String',
+ :'sub_category' => :'String',
:'context' => :'Hash<String, Array<String>>'
}
end
# List of attributes with nullable: true
@@ -70,10 +80,18 @@
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']
+ end
+
if attributes.key?(:'context')
if (value = attributes[:'context']).is_a?(Hash)
self.context = value
end
end
@@ -102,10 +120,12 @@
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
end
# @see the `==` method
# @param [Object] Object to be compared
@@ -114,10 +134,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [message, _in, context].hash
+ [message, _in, code, sub_category, context].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself
\ No newline at end of file