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

34 lines
650 B
Ruby

require 'fog/core/model'
module Fog
module HP
class LB
class VirtualIp < Fog::Model
identity :id
attribute :address
attribute :ip_version, :alias => 'ipVersion'
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
end
end
end
end