Sha256: fbcf212fa62f999eec556216761ef033ee22cae28f9b1a10802d4d6d5c1d4c30
Contents?: true
Size: 606 Bytes
Versions: 4
Compression:
Stored size: 606 Bytes
Contents
require 'fog/huaweicloud/models/collection' require 'fog/nfv/huaweicloud/models/vnf' module Fog module NFV class HuaweiCloud class Vnfs < Fog::HuaweiCloud::Collection model Fog::NFV::HuaweiCloud::Vnf def all(options = {}) load_response(service.list_vnfs(options), 'vnfs') end def get(uuid) data = service.get_vnf(uuid).body['vnf'] new(data) rescue Fog::NFV::HuaweiCloud::NotFound nil end def destroy(uuid) vnf = get(uuid) vnf.destroy end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems