Sha256: b2d8064ce4de4e4b04add3309bd78b76907f43fde95a9a590e27378c822587e8

Contents?: true

Size: 433 Bytes

Versions: 4

Compression:

Stored size: 433 Bytes

Contents

module Fog
  module NFV
    class HuaweiCloud
      class Real
        def delete_vnf(vnf_id)
          request(
            :expects => 204,
            :method  => "DELETE",
            :path    => "vnfs/#{vnf_id}"
          )
        end
      end

      class Mock
        def delete_vnf(_vnf_id)
          response = Excon::Response.new
          response.status = 204
          response
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-huaweicloud-0.0.3 lib/fog/nfv/huaweicloud/requests/delete_vnf.rb
fog-huaweicloud-0.0.2 lib/fog/nfv/huaweicloud/requests/delete_vnf.rb
fog-huaweicloud-0.1.3 lib/fog/nfv/huaweicloud/requests/delete_vnf.rb
fog-huaweicloud-0.1.2 lib/fog/nfv/huaweicloud/requests/delete_vnf.rb