mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
35 lines
666 B
Ruby
35 lines
666 B
Ruby
require 'fog/core/model'
|
|
|
|
module Fog
|
|
module Bluebox
|
|
class BLB
|
|
|
|
class LbService < Fog::Model
|
|
identity :id
|
|
|
|
attribute :name
|
|
attribute :port
|
|
attribute :service_type
|
|
attribute :private
|
|
|
|
attribute :status_url
|
|
attribute :status_username
|
|
attribute :status_password
|
|
attribute :created, :aliases => 'created_at'
|
|
|
|
|
|
def lb_application
|
|
collection.lb_application
|
|
end
|
|
|
|
def lb_backends
|
|
Fog::Bluebox::BLB::LbBackends.new({
|
|
:service => service,
|
|
:lb_service => self
|
|
})
|
|
end
|
|
|
|
end
|
|
end
|
|
end
|
|
end
|