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