lib/fastly/models/event_attributes.rb in fastly-4.0.0.alpha4 vs lib/fastly/models/event_attributes.rb in fastly-4.0.0
- old
+ new
@@ -35,10 +35,12 @@
attr_accessor :service_id
attr_accessor :user_id
+ attr_accessor :token_id
+
class EnumAttributeValidator
attr_reader :datatype
attr_reader :allowable_values
def initialize(datatype, allowable_values)
@@ -68,11 +70,12 @@
:'description' => :'description',
:'event_type' => :'event_type',
:'ip' => :'ip',
:'metadata' => :'metadata',
:'service_id' => :'service_id',
- :'user_id' => :'user_id'
+ :'user_id' => :'user_id',
+ :'token_id' => :'token_id'
}
end
# Returns all the JSON keys this model knows about
def self.acceptable_attributes
@@ -88,21 +91,19 @@
:'description' => :'String',
:'event_type' => :'String',
:'ip' => :'String',
:'metadata' => :'Object',
:'service_id' => :'String',
- :'user_id' => :'String'
+ :'user_id' => :'String',
+ :'token_id' => :'String'
}
end
# List of attributes with nullable: true
def self.fastly_nullable
Set.new([
:'created_at',
- :'customer_id',
- :'service_id',
- :'user_id'
])
end
# Initializes the object
# @param [Hash] attributes Model attributes in the form of hash
@@ -152,10 +153,14 @@
end
if attributes.key?(:'user_id')
self.user_id = attributes[:'user_id']
end
+
+ if attributes.key?(:'token_id')
+ self.token_id = attributes[:'token_id']
+ 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
@@ -192,11 +197,12 @@
description == o.description &&
event_type == o.event_type &&
ip == o.ip &&
metadata == o.metadata &&
service_id == o.service_id &&
- user_id == o.user_id
+ user_id == o.user_id &&
+ token_id == o.token_id
end
# @see the `==` method
# @param [Object] Object to be compared
def eql?(o)
@@ -204,10 +210,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [admin, created_at, customer_id, description, event_type, ip, metadata, service_id, user_id].hash
+ [admin, created_at, customer_id, description, event_type, ip, metadata, service_id, user_id, token_id].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself