Sha256: 3d115916333b66032e3744726373da08c1c6a694f80943b5c160374a99a379d4
Contents?: true
Size: 877 Bytes
Versions: 24
Compression:
Stored size: 877 Bytes
Contents
module Fog module Compute class Cloudstack class Real # Lists all available network offerings. # # {CloudStack API Reference}[http://cloudstack.apache.org/docs/api/apidocs-4.4/root_admin/listNetworkOfferings.html] def list_network_offerings(*args) options = {} if args[0].is_a? Hash options = args[0] options.merge!('command' => 'listNetworkOfferings') else options.merge!('command' => 'listNetworkOfferings') end request(options) end end class Mock def list_network_offerings(*arg) network_offerings = self.data[:network_offerings] { "listnetworkofferingsresponse" => { "count"=> network_offerings.count, "networkoffering"=> network_offerings.values } } end end end end end
Version data entries
24 entries across 22 versions & 3 rubygems