Sha256: 0faafe3b814a432afccf66def9a795535cec9b29911610760c3f3f384aba6dca
Contents?: true
Size: 701 Bytes
Versions: 43
Compression:
Stored size: 701 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 delete_global_ip_address(id) # TODO: Implement. raise Fog::Errors::MockNotImplemented end end class Real def delete_global_ip_address(id) billing = self.request(:network_subnet_ipaddress_global, "#{id}/get_billing_item").body billing.nil? and raise "Global IP Address with ID #{id} not found." request(:billing_item, "#{billing['id']}/cancel_service") end end end end end
Version data entries
43 entries across 41 versions & 3 rubygems