Class: Fog::Compute::Vsphere::Folders
- Inherits:
-
Fog::Collection
- Object
- Fog::Collection
- Fog::Compute::Vsphere::Folders
- Defined in:
- lib/fog/vsphere/models/compute/folders.rb
Instance Attribute Summary collapse
-
#datacenter ⇒ Object
Returns the value of attribute datacenter.
-
#path ⇒ Object
Returns the value of attribute path.
-
#type ⇒ Object
Returns the value of attribute type.
Instance Method Summary collapse
Instance Attribute Details
#datacenter ⇒ Object
Returns the value of attribute datacenter.
9 10 11 |
# File 'lib/fog/vsphere/models/compute/folders.rb', line 9 def datacenter @datacenter end |
#path ⇒ Object
Returns the value of attribute path.
9 10 11 |
# File 'lib/fog/vsphere/models/compute/folders.rb', line 9 def path @path end |
#type ⇒ Object
Returns the value of attribute type.
9 10 11 |
# File 'lib/fog/vsphere/models/compute/folders.rb', line 9 def type @type end |
Instance Method Details
#all(filters = { }) ⇒ Object
11 12 13 14 15 |
# File 'lib/fog/vsphere/models/compute/folders.rb', line 11 def all(filters = { }) requires :datacenter requires :type load service.list_folders(filters.merge(:datacenter => datacenter, :type => type, :path => path)) end |
#get(id) ⇒ Object
17 18 19 20 |
# File 'lib/fog/vsphere/models/compute/folders.rb', line 17 def get(id) requires :datacenter new service.get_folder(id, datacenter, type) end |