lib/hubspot/codegen/crm/extensions/cards/models/top_level_actions.rb in hubspot-api-client-17.2.0 vs lib/hubspot/codegen/crm/extensions/cards/models/top_level_actions.rb in hubspot-api-client-18.0.0
- old
+ new
@@ -1,7 +1,7 @@
=begin
-#CRM cards
+#Public App Crm Cards
#Allows an app to extend the CRM UI by surfacing custom cards in the sidebar of record pages. These cards are defined up-front as part of app configuration, then populated by external data fetch requests when the record page is accessed by a user.
The version of the OpenAPI document: v3
@@ -16,22 +16,22 @@
module Hubspot
module Crm
module Extensions
module Cards
class TopLevelActions
+ attr_accessor :secondary
+
attr_accessor :settings
attr_accessor :primary
- attr_accessor :secondary
-
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
+ :'secondary' => :'secondary',
:'settings' => :'settings',
- :'primary' => :'primary',
- :'secondary' => :'secondary'
+ :'primary' => :'primary'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -39,13 +39,13 @@
end
# Attribute type mapping.
def self.openapi_types
{
+ :'secondary' => :'Array<IntegratorObjectResultActionsInner>',
:'settings' => :'IFrameActionBody',
- :'primary' => :'IntegratorObjectResultActionsInner',
- :'secondary' => :'Array<IntegratorObjectResultActionsInner>'
+ :'primary' => :'IntegratorObjectResultActionsInner'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
@@ -66,23 +66,23 @@
fail ArgumentError, "`#{k}` is not a valid attribute in `Hubspot::Crm::Extensions::Cards::TopLevelActions`. 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?(:'secondary')
+ if (value = attributes[:'secondary']).is_a?(Array)
+ self.secondary = value
+ end
+ end
+
if attributes.key?(:'settings')
self.settings = attributes[:'settings']
end
if attributes.key?(:'primary')
self.primary = attributes[:'primary']
end
-
- if attributes.key?(:'secondary')
- if (value = attributes[:'secondary']).is_a?(Array)
- self.secondary = value
- end
- 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
@@ -104,13 +104,13 @@
# Checks equality by comparing each attribute.
# @param [Object] Object to be compared
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
+ secondary == o.secondary &&
settings == o.settings &&
- primary == o.primary &&
- secondary == o.secondary
+ primary == o.primary
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -118,10 +118,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [settings, primary, secondary].hash
+ [secondary, settings, primary].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself