Sha256: cde7afdcbecfbd66766c57ae1e3b68dd0c108cc84df8bccd174a1cec61d8cebb

Contents?: true

Size: 815 Bytes

Versions: 45

Compression:

Stored size: 815 Bytes

Contents

require 'fog/core/model'

module Fog
  module Compute
    class StormOnDemand

      class Balancer < Fog::Model
        
        identity :uniq_id
        
        attribute :vip
        attribute :price
        attribute :name
        attribute :session_persistence
        attribute :ssl_termination
        attribute :strategy
        attribute :nodes
        attribute :services

        def initialize(attributes={})
          super
        end
        
        def add_node(options)
          requires :identity
          connection.add_balancer_node({:uniq_id => identity}.merge!(options))
        end
        
        def remove_node(options)
          requires :identity
          connection.remove_balancer_node({:uniq_id => identity}.merge!(options))
        end
        
        end

    end
  end
end

Version data entries

45 entries across 45 versions & 14 rubygems

Version Path
fog-nirvanix-1.8.2 lib/fog/storm_on_demand/models/compute/balancer.rb
fog-nirvanix-1.8.1 lib/fog/storm_on_demand/models/compute/balancer.rb
fog-parser-fix-1.6.1 lib/fog/storm_on_demand/models/compute/balancer.rb
fog-test-again-1.6.0 lib/fog/storm_on_demand/models/compute/balancer.rb
fog-parser-fix-1.6.0 lib/fog/storm_on_demand/models/compute/balancer.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/storm_on_demand/models/compute/balancer.rb
fog-sgonyea-1.8.1 lib/fog/storm_on_demand/models/compute/balancer.rb
fog-1.8.0 lib/fog/storm_on_demand/models/compute/balancer.rb
fog-maestrodev-1.7.0.20121114190951 lib/fog/storm_on_demand/models/compute/balancer.rb
fog-1.7.0 lib/fog/storm_on_demand/models/compute/balancer.rb
fog-1.6.0 lib/fog/storm_on_demand/models/compute/balancer.rb
fog-1.5.0 lib/fog/storm_on_demand/models/compute/balancer.rb
fog-1.4.0 lib/fog/storm_on_demand/models/compute/balancer.rb
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/storm_on_demand/models/compute/balancer.rb
michiels-fog-1.3.1 lib/fog/storm_on_demand/models/compute/balancer.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/storm_on_demand/models/compute/balancer.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/storm_on_demand/models/compute/balancer.rb
fog-1.3.1 lib/fog/storm_on_demand/models/compute/balancer.rb
fog-1.3.0 lib/fog/storm_on_demand/models/compute/balancer.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/storm_on_demand/models/compute/balancer.rb