Sha256: e552f95616c0a155840dabbf76255b7bccb43b6b252e0079c8c87b6dfb25728a

Contents?: true

Size: 477 Bytes

Versions: 44

Compression:

Stored size: 477 Bytes

Contents

module Fog
  module NFV
    class OpenStack
      class Real
        def get_vnf(vnf_id)
          request(
            :expects => 200,
            :method  => 'GET',
            :path    => "vnfs/#{vnf_id}"
          )
        end
      end

      class Mock
        def get_vnf(_vnf_id)
          response = Excon::Response.new
          response.status = 200
          response.body = {"vnf" => data[:vnfs].first}
          response
        end
      end
    end
  end
end

Version data entries

44 entries across 42 versions & 3 rubygems

Version Path
fog-openstack-0.1.27 lib/fog/nfv/openstack/requests/get_vnf.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-openstack-0.1.26/lib/fog/nfv/openstack/requests/get_vnf.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-openstack-0.1.26/lib/fog/nfv/openstack/requests/get_vnf.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-openstack-0.1.26/lib/fog/nfv/openstack/requests/get_vnf.rb
fog-openstack-0.1.26 lib/fog/nfv/openstack/requests/get_vnf.rb
fog-openstack-0.1.25 lib/fog/nfv/openstack/requests/get_vnf.rb
fog-openstack-0.1.24 lib/fog/nfv/openstack/requests/get_vnf.rb
fog-openstack-0.1.23 lib/fog/nfv/openstack/requests/get_vnf.rb
fog-openstack-0.1.22 lib/fog/nfv/openstack/requests/get_vnf.rb
fog-openstack-0.1.21 lib/fog/nfv/openstack/requests/get_vnf.rb
fog-openstack-0.1.20 lib/fog/nfv/openstack/requests/get_vnf.rb
fog-openstack-0.1.19 lib/fog/nfv/openstack/requests/get_vnf.rb
fog-openstack-0.1.18 lib/fog/nfv/openstack/requests/get_vnf.rb
fog-openstack-0.1.17 lib/fog/nfv/openstack/requests/get_vnf.rb
fog-openstack-0.1.15 lib/fog/nfv/openstack/requests/get_vnf.rb
fog-openstack-0.1.14 lib/fog/nfv/openstack/requests/get_vnf.rb
fog-openstack-0.1.13 lib/fog/nfv/openstack/requests/get_vnf.rb
fog-openstack-0.1.12 lib/fog/nfv/openstack/requests/get_vnf.rb
fog-openstack-0.1.11 lib/fog/nfv/openstack/requests/get_vnf.rb
fog-openstack-0.1.10 lib/fog/openstack/requests/nfv/get_vnf.rb