lib/composio/models/trigger_response_dto.rb in composio-0.1.15 vs lib/composio/models/trigger_response_dto.rb in composio-0.1.16
- old
+ new
@@ -18,16 +18,20 @@
attr_accessor :message
# Optional trigger ID
attr_accessor :trigger_id
+ # Is new trigger. If true, the trigger was created just now or else it was already existing
+ attr_accessor :is_new
+
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
:'status' => :'status',
:'message' => :'message',
- :'trigger_id' => :'triggerId'
+ :'trigger_id' => :'triggerId',
+ :'is_new' => :'isNew'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -37,11 +41,12 @@
# Attribute type mapping.
def self.openapi_types
{
:'status' => :'String',
:'message' => :'String',
- :'trigger_id' => :'String'
+ :'trigger_id' => :'String',
+ :'is_new' => :'Boolean'
}
end
# List of attributes with nullable: true
def self.openapi_nullable
@@ -73,10 +78,14 @@
end
if attributes.key?(:'trigger_id')
self.trigger_id = attributes[:'trigger_id']
end
+
+ if attributes.key?(:'is_new')
+ self.is_new = attributes[:'is_new']
+ 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
@@ -100,11 +109,12 @@
def ==(o)
return true if self.equal?(o)
self.class == o.class &&
status == o.status &&
message == o.message &&
- trigger_id == o.trigger_id
+ trigger_id == o.trigger_id &&
+ is_new == o.is_new
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -112,10 +122,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [status, message, trigger_id].hash
+ [status, message, trigger_id, is_new].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself