lib/fastly/models/inline_response2001.rb in fastly-4.0.0.alpha4 vs lib/fastly/models/inline_response2001.rb in fastly-4.0.0
- old
+ new
@@ -11,17 +11,17 @@
require 'date'
require 'time'
module Fastly
class InlineResponse2001
- # Time-stamp (GMT) when the domain_ownership validation will expire.
- attr_accessor :expires_at
+ # The service IDs of the services the token will have access to. Separate service IDs with a space.
+ attr_accessor :data
# Attribute mapping from ruby-style variable name to JSON key.
def self.attribute_map
{
- :'expires_at' => :'expires_at'
+ :'data' => :'data'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -29,11 +29,11 @@
end
# Attribute type mapping.
def self.fastly_types
{
- :'expires_at' => :'String'
+ :'data' => :'Array<String>'
}
end
# List of attributes with nullable: true
def self.fastly_nullable
@@ -54,12 +54,14 @@
fail ArgumentError, "`#{k}` is not a valid attribute in `Fastly::InlineResponse2001`. 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?(:'expires_at')
- self.expires_at = attributes[:'expires_at']
+ if attributes.key?(:'data')
+ if (value = attributes[:'data']).is_a?(Array)
+ self.data = value
+ end
end
end
# Show invalid properties with the reasons. Usually used together with valid?
# @return Array for valid properties with the reasons
@@ -77,11 +79,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 &&
- expires_at == o.expires_at
+ data == o.data
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -89,10 +91,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [expires_at].hash
+ [data].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself