lib/algolia/models/ingestion/task_create.rb in algolia-3.0.0.beta.4 vs lib/algolia/models/ingestion/task_create.rb in algolia-3.0.0.beta.5

- old
+ new

@@ -23,10 +23,13 @@ # Maximum accepted percentage of failures for a task run to finish successfully. attr_accessor :failure_threshold attr_accessor :input + # Date of the last cursor in RFC 3339 format. + attr_accessor :cursor + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values def initialize(datatype, allowable_values) @@ -54,11 +57,12 @@ :destination_id => :destinationID, :trigger => :trigger, :action => :action, :enabled => :enabled, :failure_threshold => :failureThreshold, - :input => :input + :input => :input, + :cursor => :cursor } end # Returns all the JSON keys this model knows about def self.acceptable_attributes @@ -72,11 +76,12 @@ :destination_id => :String, :trigger => :TaskCreateTrigger, :action => :ActionType, :enabled => :Boolean, :failure_threshold => :Integer, - :input => :TaskInput + :input => :TaskInput, + :cursor => :String } end # List of attributes with nullable: true def self.openapi_nullable @@ -133,10 +138,14 @@ end if attributes.key?(:input) self.input = attributes[:input] end + + if attributes.key?(:cursor) + self.cursor = attributes[:cursor] + end end # Custom attribute writer method with validation # @param [Object] failure_threshold Value to be assigned def failure_threshold=(failure_threshold) @@ -165,11 +174,12 @@ destination_id == other.destination_id && trigger == other.trigger && action == other.action && enabled == other.enabled && failure_threshold == other.failure_threshold && - input == other.input + input == other.input && + cursor == other.cursor end # @see the `==` method # @param [Object] Object to be compared def eql?(other) @@ -177,10 +187,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [source_id, destination_id, trigger, action, enabled, failure_threshold, input].hash + [source_id, destination_id, trigger, action, enabled, failure_threshold, input, cursor].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself