lib/fastly/api/cache_settings_api.rb in fastly-4.0.0.alpha4 vs lib/fastly/api/cache_settings_api.rb in fastly-4.0.0
- old
+ new
@@ -55,11 +55,11 @@
end
# verify the required parameter 'version_id' is set
if @api_client.config.client_side_validation && version_id.nil?
fail ArgumentError, "Missing the required parameter 'version_id' when calling CacheSettingsApi.create_cache_settings"
end
- allowable_values = ["pass", "deliver", "restart"]
+ allowable_values = ["pass", "cache", "restart"]
if @api_client.config.client_side_validation && opts[:'action'] && !allowable_values.include?(opts[:'action'])
fail ArgumentError, "invalid value for \"action\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/service/{service_id}/version/{version_id}/cache_settings'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'version_id' + '}', CGI.escape(version_id.to_s))
@@ -380,10 +380,10 @@
end
# verify the required parameter 'cache_settings_name' is set
if @api_client.config.client_side_validation && cache_settings_name.nil?
fail ArgumentError, "Missing the required parameter 'cache_settings_name' when calling CacheSettingsApi.update_cache_settings"
end
- allowable_values = ["pass", "deliver", "restart"]
+ allowable_values = ["pass", "cache", "restart"]
if @api_client.config.client_side_validation && opts[:'action'] && !allowable_values.include?(opts[:'action'])
fail ArgumentError, "invalid value for \"action\", must be one of #{allowable_values}"
end
# resource path
local_var_path = '/service/{service_id}/version/{version_id}/cache_settings/{cache_settings_name}'.sub('{' + 'service_id' + '}', CGI.escape(service_id.to_s)).sub('{' + 'version_id' + '}', CGI.escape(version_id.to_s)).sub('{' + 'cache_settings_name' + '}', CGI.escape(cache_settings_name.to_s))