lib/fastly/models/inline_response2002.rb in fastly-4.2.0 vs lib/fastly/models/inline_response2002.rb in fastly-4.3.0

- old
+ new

@@ -11,19 +11,17 @@ require 'date' require 'time' module Fastly class InlineResponse2002 - attr_accessor :data + # Time-stamp (GMT) when the domain_ownership validation will expire. + attr_accessor :expires_at - attr_accessor :meta - # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'data' => :'data', - :'meta' => :'meta' + :'expires_at' => :'expires_at' } end # Returns all the JSON keys this model knows about def self.acceptable_attributes @@ -31,12 +29,11 @@ end # Attribute type mapping. def self.fastly_types { - :'data' => :'Array<StoreResponse>', - :'meta' => :'InlineResponse2002Meta' + :'expires_at' => :'String' } end # List of attributes with nullable: true def self.fastly_nullable @@ -57,19 +54,13 @@ fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::InlineResponse2002`. 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?(:'data') - if (value = attributes[:'data']).is_a?(Array) - self.data = value - end + if attributes.key?(:'expires_at') + self.expires_at = attributes[:'expires_at'] end - - if attributes.key?(:'meta') - self.meta = attributes[:'meta'] - 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 @@ -86,12 +77,11 @@ # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && - data == o.data && - meta == o.meta + expires_at == o.expires_at end # @see the `==` method # @param [Object] Object to be compared def eql?(o) @@ -99,10 +89,10 @@ end # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [data, meta].hash + [expires_at].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself