Sha256: 2545875ec97b0e89c359663ef5c220554b17d67971eec193c69b323c1704d685
Contents?: true
Size: 701 Bytes
Versions: 24
Compression:
Stored size: 701 Bytes
Contents
module Fog module Compute class Cloudstack class Real # Lists all available networks. # # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/listNetworks.html] def list_networks(*args) options = {} if args[0].is_a? Hash options = args[0] options.merge!('command' => 'listNetworks') else options.merge!('command' => 'listNetworks') end # add project id if we have one @cloudstack_project_id ? options.merge!('projectid' => @cloudstack_project_id) : nil request(options) end end end end end
Version data entries
24 entries across 22 versions & 3 rubygems