class Fog::Network::Softlayer::Datacenter
Public Class Methods
new(attributes)
click to toggle source
Calls superclass method
# File lib/fog/softlayer/models/network/datacenter.rb, line 17 def initialize(attributes) @connection = attributes[:connection] super end
Public Instance Methods
create()
click to toggle source
# File lib/fog/softlayer/models/network/datacenter.rb, line 40 def create raise "Not possible." end
destroy()
click to toggle source
# File lib/fog/softlayer/models/network/datacenter.rb, line 48 def destroy raise "Not possible." end
get_avaliable_maintenance_windows(begin_date, end_date, slots_number)
click to toggle source
# File lib/fog/softlayer/models/network/datacenter.rb, line 32 def get_avaliable_maintenance_windows(begin_date, end_date, slots_number) service.get_maintenance_windows(id, begin_date, end_date, slots_number).body end
routable_subnets()
click to toggle source
# File lib/fog/softlayer/models/network/datacenter.rb, line 27 def routable_subnets requires :id @routable_subnets ||= service.request(:location_datacenter, "#{id}/get_bound_subnets").body end
routers()
click to toggle source
# File lib/fog/softlayer/models/network/datacenter.rb, line 22 def routers requires :id @routers ||= service.get_datacenter_routers(id).body end
save()
click to toggle source
# File lib/fog/softlayer/models/network/datacenter.rb, line 36 def save raise "Not possible." end
update()
click to toggle source
# File lib/fog/softlayer/models/network/datacenter.rb, line 44 def update raise "Not possible." end