Sha256: 0a7f6e231a21c35b075d563dadbd74e8516ae448ab9bd1204452d2f16be172ab
Contents?: true
Size: 1.17 KB
Versions: 14
Compression:
Stored size: 1.17 KB
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 Datacenter < Fog::Model identity :id attribute :long_name, :aliases => 'longName' attribute :name def initialize(attributes) @connection = attributes[:connection] super end def routers requires :id @routers ||= service.get_datacenter_routers(id).body end def routable_subnets requires :id @routable_subnets ||= service.request(:location_datacenter, "#{id}/get_bound_subnets").body end def get_avaliable_maintenance_windows(begin_date, end_date, slots_number) service.get_maintenance_windows(id, begin_date, end_date, slots_number).body end def save raise "Not possible." end def create raise "Not possible." end def update raise "Not possible." end def destroy raise "Not possible." end end end end end
Version data entries
14 entries across 12 versions & 3 rubygems