class Fog::Compute::Proxmox::Storages

class Storages Collection of storages

Public Instance Methods

all() click to toggle source
# File lib/fog/compute/proxmox/models/storages.rb, line 35
def all
  search
end
find_by_id(id) click to toggle source
# File lib/fog/compute/proxmox/models/storages.rb, line 48
def find_by_id(id)
  cached_storage = find { |storage| storage.storage == id }
  return cached_storage if cached_storage
  storage_hash = service.get_storage(node, id, {})
  Fog::Compute::Proxmox::Storage.new(
    storage_hash.merge(service: service)
  )
end
list_by_content_type(content) click to toggle source
# File lib/fog/compute/proxmox/models/storages.rb, line 44
def list_by_content_type(content)
  search(content: content)
end
new(attributes = {}) click to toggle source
Calls superclass method
# File lib/fog/compute/proxmox/models/storages.rb, line 30
def new(attributes = {})
  requires :node
  super({ node: node }.merge(attributes))
end