Sha256: 5879666dbfd558b365216a8564b0cdefb298637fd6eab33eef53eea8e1e09c21

Contents?: true

Size: 638 Bytes

Versions: 28

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     => MultiJson.encode(data),
            :expects  => 202,
            :method   => 'PUT',
            :path     => "loadbalancers/#{load_balancer_id}.json"
          )
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 7 rubygems

Version Path
brightbox-cli-0.18.1 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
michiels-fog-1.3.1 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog-1.3.1 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog-1.3.0 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog-1.2.0 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
ktheory-fog-1.1.2 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog-1.1.2 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog_tractical-1.1.4 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog_tractical-1.1.3 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog-1.1.1 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb
fog-1.1.0 lib/fog/rackspace/requests/load_balancers/update_load_balancer.rb