lib/fastly/models/header.rb in fastly-6.0.2 vs lib/fastly/models/header.rb in fastly-7.0.0
- old
+ new
@@ -20,19 +20,13 @@
attr_accessor :cache_condition
# Header to set.
attr_accessor :dst
- # Don't add the header if it is added already. Only applies to 'set' action.
- attr_accessor :ignore_if_set
-
# A handle to refer to this Header object.
attr_accessor :name
- # Priority determines execution order. Lower numbers execute first.
- attr_accessor :priority
-
# Regular expression to use. Only applies to `regex` and `regex_repeat` actions.
attr_accessor :regex
# Condition which, if met, will select this configuration during a request. Optional.
attr_accessor :request_condition
@@ -75,13 +69,11 @@
def self.attribute_map
{
:'action' => :'action',
:'cache_condition' => :'cache_condition',
:'dst' => :'dst',
- :'ignore_if_set' => :'ignore_if_set',
:'name' => :'name',
- :'priority' => :'priority',
:'regex' => :'regex',
:'request_condition' => :'request_condition',
:'response_condition' => :'response_condition',
:'src' => :'src',
:'substitution' => :'substitution',
@@ -98,13 +90,11 @@
def self.fastly_types
{
:'action' => :'String',
:'cache_condition' => :'String',
:'dst' => :'String',
- :'ignore_if_set' => :'Integer',
:'name' => :'String',
- :'priority' => :'Integer',
:'regex' => :'String',
:'request_condition' => :'String',
:'response_condition' => :'String',
:'src' => :'String',
:'substitution' => :'String',
@@ -149,24 +139,14 @@
if attributes.key?(:'dst')
self.dst = attributes[:'dst']
end
- if attributes.key?(:'ignore_if_set')
- self.ignore_if_set = attributes[:'ignore_if_set']
- end
-
if attributes.key?(:'name')
self.name = attributes[:'name']
end
- if attributes.key?(:'priority')
- self.priority = attributes[:'priority']
- else
- self.priority = 100
- end
-
if attributes.key?(:'regex')
self.regex = attributes[:'regex']
end
if attributes.key?(:'request_condition')
@@ -233,13 +213,11 @@
return true if self.equal?(o)
self.class == o.class &&
action == o.action &&
cache_condition == o.cache_condition &&
dst == o.dst &&
- ignore_if_set == o.ignore_if_set &&
name == o.name &&
- priority == o.priority &&
regex == o.regex &&
request_condition == o.request_condition &&
response_condition == o.response_condition &&
src == o.src &&
substitution == o.substitution &&
@@ -253,10 +231,10 @@
end
# Calculates hash code according to all attributes.
# @return [Integer] Hash code
def hash
- [action, cache_condition, dst, ignore_if_set, name, priority, regex, request_condition, response_condition, src, substitution, type].hash
+ [action, cache_condition, dst, name, regex, request_condition, response_condition, src, substitution, type].hash
end
# Builds the object from hash
# @param [Hash] attributes Model attributes in the form of hash
# @return [Object] Returns the model itself