class Fog::OpenStack::SharedFileSystem::Networks

Public Instance Methods

all(options = {}) click to toggle source
# File lib/fog/openstack/shared_file_system/models/networks.rb, line 10
def all(options = {})
  load_response(service.list_share_networks_detail(options), 'share_networks')
end
destroy(id) click to toggle source
# File lib/fog/openstack/shared_file_system/models/networks.rb, line 21
def destroy(id)
  net = find_by_id(id)
  net.destroy
end
find_by_id(id) click to toggle source
# File lib/fog/openstack/shared_file_system/models/networks.rb, line 14
def find_by_id(id)
  net_hash = service.get_share_network(id).body['share_network']
  new(net_hash.merge(:service => service))
end
Also aliased as: get
get(id)
Alias for: find_by_id