Sha256: 65ee343682812747857aeb2d590e12f1951767cfb888a41a2d003909b8e5265d

Contents?: true

Size: 638 Bytes

Versions: 26

Compression:

Stored size: 638 Bytes

Contents

module Fog
  module Rackspace
    class LoadBalancers
      class Real
        def update_load_balancer(load_balancer_id, options = {})
          data = {
            'loadBalancer' => {
              'name' => options[:name],
              'port' => options[:port],
              'protocol' => options[:protocol],
              'algorithm' => options[:algorithm]
            }
          }
          request(
            :body     => Fog::JSON.encode(data),
            :expects  => 202,
            :method   => 'PUT',
            :path     => "loadbalancers/#{load_balancer_id}.json"
          )
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 11 rubygems

Version Path
hpfog-0.0.20 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog-nirvanix-1.8.2 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog-1.11.1 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog-1.11.0 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog-nirvanix-1.8.1 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog-1.10.1 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog-parser-fix-1.6.1 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog-test-again-1.6.0 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog-test-me-1.10.0 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog-parser-fix-1.6.0 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog-1.10.0 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog-1.9.0 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog-maestrodev-1.8.0.20130114204828 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog-maestrodev-1.8.0.20130111070250 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog-maestrodev-1.8.0.20130109172219 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
ey-vendored-backup-3.0.27 vendor/gems/fog/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog-sgonyea-1.8.1 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog-1.8.0 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb