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.9 lib/fog/openstack/requests/nfv/get_vnf.rb
fog-openstack-0.1.8 lib/fog/openstack/requests/nfv/get_vnf.rb
fog-openstack-0.1.7 lib/fog/openstack/requests/nfv/get_vnf.rb
fog-openstack-0.1.6 lib/fog/openstack/requests/nfv/get_vnf.rb