Sha256: ad9b6b70e9c25706ae52bce73cc380cb85dcd7405c331204ecf5c3a06b022495

Contents?: true

Size: 538 Bytes

Versions: 48

Compression:

Stored size: 538 Bytes

Contents

module Fog
  module Network
    class OpenStack
      class Real
        def list_ipsec_policies(filters = {})
          request(
            :expects => 200,
            :method  => 'GET',
            :path    => 'vpn/ipsecpolicies',
            :query   => filters
          )
        end
      end

      class Mock
        def list_ipsec_policies(*)
          Excon::Response.new(
            :body   => {'ipsecpolicies' => data[:ipsec_policies].values},
            :status => 200
          )
        end
      end
    end
  end
end

Version data entries

48 entries across 46 versions & 3 rubygems

Version Path
fog-openstack-0.1.9 lib/fog/openstack/requests/network/list_ipsec_policies.rb
fog-openstack-0.1.8 lib/fog/openstack/requests/network/list_ipsec_policies.rb
fog-openstack-0.1.7 lib/fog/openstack/requests/network/list_ipsec_policies.rb
fog-openstack-0.1.6 lib/fog/openstack/requests/network/list_ipsec_policies.rb
fog-openstack-0.1.5 lib/fog/openstack/requests/network/list_ipsec_policies.rb
fog-openstack-0.1.4 lib/fog/openstack/requests/network/list_ipsec_policies.rb
fog-openstack-0.1.3 lib/fog/openstack/requests/network/list_ipsec_policies.rb
fog-openstack-0.1.2 lib/fog/openstack/requests/network/list_ipsec_policies.rb