Sha256: ff6e9e2266c445e82cc4c3930ac552ad0cb226c0379b8412740d6acdd3ab3255

Contents?: true

Size: 553 Bytes

Versions: 1

Compression:

Stored size: 553 Bytes

Contents

module Fog
  module Compute
    class Brightbox
      class Real

        def update_load_balancer(identifier, options = {})
          return nil if identifier.nil? || identifier == ""
          return nil if options.empty? || options.nil?
          request(
            :expects  => [202],
            :method   => 'PUT',
            :path     => "/1.0/load_balancers/#{identifier}",
            :headers  => {"Content-Type" => "application/json"},
            :body     => MultiJson.encode(options)
          )
        end

      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fog-0.10.0 lib/fog/compute/requests/brightbox/update_load_balancer.rb