lib/algolia/models/ingestion/task_create.rb in algolia-3.10.2 vs lib/algolia/models/ingestion/task_create.rb in algolia-3.11.0

- old
+ new

@@ -27,40 +27,43 @@ attr_accessor :input # Date of the last cursor in RFC 3339 format. attr_accessor :cursor + attr_accessor :notifications + + attr_accessor :policies + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :source_id => :sourceID, :destination_id => :destinationID, :action => :action, :cron => :cron, :enabled => :enabled, :failure_threshold => :failureThreshold, :input => :input, - :cursor => :cursor + :cursor => :cursor, + :notifications => :notifications, + :policies => :policies } end - # Returns all the JSON keys this model knows about - def self.acceptable_attributes - attribute_map.values - end - # Attribute type mapping. def self.types_mapping { :source_id => :"String", :destination_id => :"String", :action => :"ActionType", :cron => :"String", :enabled => :"Boolean", :failure_threshold => :"Integer", :input => :"TaskInput", - :cursor => :"String" + :cursor => :"String", + :notifications => :"Notifications", + :policies => :"Policies" } end # List of attributes with nullable: true def self.openapi_nullable @@ -127,10 +130,18 @@ end if attributes.key?(:cursor) self.cursor = attributes[:cursor] end + + if attributes.key?(:notifications) + self.notifications = attributes[:notifications] + end + + if attributes.key?(:policies) + self.policies = attributes[:policies] + end end # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(other) @@ -141,11 +152,13 @@ action == other.action && cron == other.cron && enabled == other.enabled && failure_threshold == other.failure_threshold && input == other.input && - cursor == other.cursor + cursor == other.cursor && + notifications == other.notifications && + policies == other.policies end # @see the `==` method # @param [Object] Object to be compared def eql?(other) @@ -153,10 +166,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [source_id, destination_id, action, cron, enabled, failure_threshold, input, cursor].hash + [source_id, destination_id, action, cron, enabled, failure_threshold, input, cursor, notifications, policies].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself