Sha256: e6f72fe7f3193ccb8dcbfcd85193cdbe0d5f4ffba7b728e6724deada030a2da7
Contents?: true
Size: 717 Bytes
Versions: 20
Compression:
Stored size: 717 Bytes
Contents
module Fog module OpenStack class Network class Real def delete_ike_policy(ike_policy_id) request( :expects => 204, :method => 'DELETE', :path => "vpn/ikepolicies/#{ike_policy_id}" ) end end class Mock def delete_ike_policy(ike_policy_id) response = Excon::Response.new if list_ike_policies.body['ikepolicies'].collect { |r| r['id'] }.include? ike_policy_id data[:ike_policies].delete(ike_policy_id) response.status = 204 response else raise Fog::OpenStack::Network::NotFound end end end end end end
Version data entries
20 entries across 20 versions & 3 rubygems