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

- old
+ new

@@ -35,10 +35,14 @@ attr_accessor :action # Date of the last cursor in RFC 3339 format. attr_accessor :cursor + attr_accessor :notifications + + attr_accessor :policies + # Date of creation in RFC 3339 format. attr_accessor :created_at # Date of last update in RFC 3339 format. attr_accessor :updated_at @@ -55,20 +59,17 @@ :input => :input, :enabled => :enabled, :failure_threshold => :failureThreshold, :action => :action, :cursor => :cursor, + :notifications => :notifications, + :policies => :policies, :created_at => :createdAt, :updated_at => :updatedAt } 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 { :task_id => :"String", :source_id => :"String", @@ -79,10 +80,12 @@ :input => :"TaskInput", :enabled => :"Boolean", :failure_threshold => :"Integer", :action => :"ActionType", :cursor => :"String", + :notifications => :"Notifications", + :policies => :"Policies", :created_at => :"String", :updated_at => :"String" } end @@ -163,10 +166,18 @@ 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 + if attributes.key?(:created_at) self.created_at = attributes[:created_at] else self.created_at = nil end @@ -190,10 +201,12 @@ input == other.input && enabled == other.enabled && failure_threshold == other.failure_threshold && action == other.action && cursor == other.cursor && + notifications == other.notifications && + policies == other.policies && created_at == other.created_at && updated_at == other.updated_at end # @see the `==` method @@ -215,9 +228,11 @@ input, enabled, failure_threshold, action, cursor, + notifications, + policies, created_at, updated_at ].hash end