Sha256: 49cbe01be4e5d3347434878eb608dc84891d83c9076d6cae2f1c11f4c14b833d

Contents?: true

Size: 563 Bytes

Versions: 4

Compression:

Stored size: 563 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
          request(options)
        end
      end

    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
fog-1.26.0 lib/fog/cloudstack/requests/compute/list_networks.rb
fog-1.25.0 lib/fog/cloudstack/requests/compute/list_networks.rb
nsidc-fog-1.24.1 lib/fog/cloudstack/requests/compute/list_networks.rb
fog-1.24.0 lib/fog/cloudstack/requests/compute/list_networks.rb