Module: XenAPI::Storage

Included in:
Session
Defined in:
lib/xenapi/storage.rb

Instance Method Summary collapse

Instance Method Details

#all_storagesObject



20
21
22
# File 'lib/xenapi/storage.rb', line 20

def all_storages
  self.SR.get_all
end

#storage_name(uuid) ⇒ Object



16
17
18
# File 'lib/xenapi/storage.rb', line 16

def storage_name(uuid)
  self.SR.get_name_label storage_ref(uuid)
end

#storage_record(ref) ⇒ Object



8
9
10
# File 'lib/xenapi/storage.rb', line 8

def storage_record(ref)
  self.SR.get_record(ref)
end

#storage_record_by_uuid(uuid) ⇒ Object



12
13
14
# File 'lib/xenapi/storage.rb', line 12

def storage_record_by_uuid(uuid)
  self.SR.get_record(self.SR.get_by_uuid(uuid))
end

#storage_ref(uuid) ⇒ Object



4
5
6
# File 'lib/xenapi/storage.rb', line 4

def storage_ref(uuid)
  self.SR.get_by_uuid(uuid)
end