1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/hp/models/lb/virtual_ip.rb

35 lines
650 B
Ruby
Raw Normal View History

2013-03-01 14:26:52 -06:00
require 'fog/core/model'
module Fog
module HP
class LB
2013-03-06 11:01:54 -06:00
class VirtualIp < Fog::Model
2013-03-01 14:26:52 -06:00
identity :id
2013-03-06 10:28:47 -06:00
attribute :address
attribute :ip_version, :alias => 'ipVersion'
2013-03-06 10:28:47 -06:00
attribute :type
def destroy
raise Fog::HP::LB::NotFound.new('Operation not allowed.')
end
def create(params)
raise Fog::HP::LB::NotFound.new('Operation not allowed.')
end
def save
raise Fog::HP::LB::NotFound.new('Operation not allowed.')
end
private
def load_balancer
collection.load_balancer
end
2013-03-01 14:26:52 -06:00
end
end
end
end