Sha256: 6f4790354113b0504614f1d245251a5216049bfe2508017be310ff4910b963c9
Contents?: true
Size: 615 Bytes
Versions: 4
Compression:
Stored size: 615 Bytes
Contents
require 'fog/huaweicloud/models/collection' require 'fog/nfv/huaweicloud/models/vnfd' module Fog module NFV class HuaweiCloud class Vnfds < Fog::HuaweiCloud::Collection model Fog::NFV::HuaweiCloud::Vnfd def all(options = {}) load_response(service.list_vnfds(options), 'vnfds') end def get(uuid) data = service.get_vnfd(uuid).body['vnfd'] new(data) rescue Fog::NFV::HuaweiCloud::NotFound nil end def destroy(uuid) vnfd = get(uuid) vnfd.destroy end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems