lib/fastly/models/cache_setting.rb in fastly-4.0.0.alpha4 vs lib/fastly/models/cache_setting.rb in fastly-4.0.0

- old
+ new

@@ -129,18 +129,18 @@ end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - action_validator = EnumAttributeValidator.new('String', ["pass", "deliver", "restart"]) + action_validator = EnumAttributeValidator.new('String', ["pass", "cache", "restart"]) return false unless action_validator.valid?(@action) true end # Custom attribute writer method checking allowed values (enum). # @param [Object] action Object to be assigned def action=(action) - validator = EnumAttributeValidator.new('String', ["pass", "deliver", "restart"]) + validator = EnumAttributeValidator.new('String', ["pass", "cache", "restart"]) unless validator.valid?(action) fail ArgumentError, "invalid value for \"action\", must be one of #{validator.allowable_values}." end @action = action end