Sha256: f67ad0d6f7dabcc247c08dae094a1fa81a1e5a94c88b6a0004337ef251aa0d18

Contents?: true

Size: 647 Bytes

Versions: 25

Compression:

Stored size: 647 Bytes

Contents

#
# Author:: Matt Eldridge (<matt.eldridge@us.ibm.com>)
# © Copyright IBM Corporation 2014.
#
# LICENSE: MIT (http://opensource.org/licenses/MIT)
#

module Fog
  module Network
    class Softlayer

      class Mock

        def get_subnet(id)
          # TODO: Implement.
          raise Fog::Errors::MockNotImplemented
        end

      end

      class Real
        def get_subnet(id)
          self.request(:network_subnet, "#{id}/get_object", :query => 'objectMask=mask[datacenter,ipAddresses.id,virtualGuests.fullyQualifiedDomainName,virtualGuests.id,hardware.fullyQualifiedDomainName,hardware.id]')
        end
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
fog-softlayer-0.3.23 lib/fog/softlayer/requests/network/get_subnet.rb
fog-softlayer-0.3.22 lib/fog/softlayer/requests/network/get_subnet.rb
fog-softlayer-0.3.21 lib/fog/softlayer/requests/network/get_subnet.rb
fog-softlayer-0.3.20 lib/fog/softlayer/requests/network/get_subnet.rb
fog-softlayer-0.3.19 lib/fog/softlayer/requests/network/get_subnet.rb
fog-softlayer-0.3.18 lib/fog/softlayer/requests/network/get_subnet.rb
fog-softlayer-0.3.17 lib/fog/softlayer/requests/network/get_subnet.rb
fog-softlayer-0.3.16 lib/fog/softlayer/requests/network/get_subnet.rb
fog-softlayer-0.3.15 lib/fog/softlayer/requests/network/get_subnet.rb
fog-softlayer-0.3.14 lib/fog/softlayer/requests/network/get_subnet.rb
fog-softlayer-0.3.13 lib/fog/softlayer/requests/network/get_subnet.rb
fog-softlayer-0.3.12 lib/fog/softlayer/requests/network/get_subnet.rb
fog-softlayer-0.3.11 lib/fog/softlayer/requests/network/get_subnet.rb
fog-softlayer-0.3.10 lib/fog/softlayer/requests/network/get_subnet.rb
fog-softlayer-0.3.9 lib/fog/softlayer/requests/network/get_subnet.rb
fog-softlayer-0.3.8 lib/fog/softlayer/requests/network/get_subnet.rb
fog-softlayer-0.3.7 lib/fog/softlayer/requests/network/get_subnet.rb
fog-softlayer-0.3.6 lib/fog/softlayer/requests/network/get_subnet.rb
fog-softlayer-0.3.6.pre.f82ffe9 lib/fog/softlayer/requests/network/get_subnet.rb
fog-softlayer-0.3.6.pre.f7e3358 lib/fog/softlayer/requests/network/get_subnet.rb