Sha256: d0a439841ced09b91963d14d8bffe83ca0e1bcf8b11c958a0a299c8bb55764b5
Contents?: true
Size: 615 Bytes
Versions: 5
Compression:
Stored size: 615 Bytes
Contents
require 'fog/core/collection' require 'fog/vsphere/models/compute/folder' module Fog module Compute class Vsphere class Folders < Fog::Collection model Fog::Compute::Vsphere::Folder attr_accessor :datacenter, :type, :path def all(filters = { }) requires :datacenter requires :type load connection.list_folders(filters.merge(:datacenter => datacenter, :type => type, :path => path)) end def get(id) requires :datacenter new connection.get_folder(id, datacenter, type) end end end end end
Version data entries
5 entries across 5 versions & 4 rubygems