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.31 lib/fog/network/openstack/requests/list_ipsec_policies.rb
fog-openstack-0.3.10 lib/fog/network/openstack/requests/list_ipsec_policies.rb
fog-openstack-0.1.30 lib/fog/network/openstack/requests/list_ipsec_policies.rb
fog-openstack-0.1.29 lib/fog/network/openstack/requests/list_ipsec_policies.rb
fog-openstack-0.3.9 lib/fog/network/openstack/requests/list_ipsec_policies.rb
fog-openstack-0.1.28 lib/fog/network/openstack/requests/list_ipsec_policies.rb
fog-openstack-0.3.8 lib/fog/network/openstack/requests/list_ipsec_policies.rb
fog-openstack-0.3.7 lib/fog/network/openstack/requests/list_ipsec_policies.rb
fog-openstack-0.3.6 lib/fog/network/openstack/requests/list_ipsec_policies.rb
fog-openstack-0.3.5 lib/fog/network/openstack/requests/list_ipsec_policies.rb
fog-openstack-0.3.4 lib/fog/network/openstack/requests/list_ipsec_policies.rb
fog-openstack-0.3.3 lib/fog/network/openstack/requests/list_ipsec_policies.rb
fog-openstack-0.3.2 lib/fog/network/openstack/requests/list_ipsec_policies.rb
fog-openstack-0.3.0 lib/fog/network/openstack/requests/list_ipsec_policies.rb
fog-openstack-0.2.4 lib/fog/network/openstack/requests/list_ipsec_policies.rb
fog-openstack-0.2.3 lib/fog/network/openstack/requests/list_ipsec_policies.rb
fog-openstack-0.2.2 lib/fog/network/openstack/requests/list_ipsec_policies.rb
fog-openstack-0.2.1 lib/fog/network/openstack/requests/list_ipsec_policies.rb
fog-openstack-0.2.0 lib/fog/network/openstack/requests/list_ipsec_policies.rb
fog-zj-0.1.28 lib/fog/network/openstack/requests/list_ipsec_policies.rb