Sha256: 1814054ec669e6905fd081075c06c3409e6f9ea0b7e6fe326e16cdd6ea71d44b

Contents?: true

Size: 588 Bytes

Versions: 10

Compression:

Stored size: 588 Bytes

Contents

module Fog
  module Vsphere
    class Compute
      class Folders < Fog::Collection
        autoload :Folder, File.expand_path('../folder', __FILE__)

        model Fog::Vsphere::Compute::Folder
        attr_accessor :datacenter, :type, :path

        def all(filters = {})
          requires :datacenter
          requires :type
          load service.list_folders(filters.merge(datacenter: datacenter, type: type, path: path))
        end

        def get(id)
          requires :datacenter
          new service.get_folder(id, datacenter, type)
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
fog-vsphere-3.4.0 lib/fog/vsphere/models/compute/folders.rb
fog-vsphere-3.3.1 lib/fog/vsphere/models/compute/folders.rb
fog-vsphere-3.3.0 lib/fog/vsphere/models/compute/folders.rb
fog-vsphere-3.2.5 lib/fog/vsphere/models/compute/folders.rb
fog-vsphere-3.2.2 lib/fog/vsphere/models/compute/folders.rb
fog-vsphere-3.2.1 lib/fog/vsphere/models/compute/folders.rb
fog-vsphere-3.2.0 lib/fog/vsphere/models/compute/folders.rb
fog-vsphere-3.1.1 lib/fog/vsphere/models/compute/folders.rb
fog-vsphere-3.1.0 lib/fog/vsphere/models/compute/folders.rb
fog-vsphere-3.0.0 lib/fog/vsphere/models/compute/folders.rb