Sha256: af8e9bff1e5469b6e2a2d3f75b14bb5dcd5ab22a31c9c7f9079c4a6c1e44cda3

Contents?: true

Size: 970 Bytes

Versions: 100

Compression:

Stored size: 970 Bytes

Contents

module Fog
  module Bluebox
    class BLB
      class Real
        # change machine attributes (port &c) in a single backend
        #
        # === Parameters
        # * lb_backend_id<~String> - ID of backend
        # * lb_machine_id<~String> - ID of machine
        # * options<~Hash>:
        #   * port<~Integer> - port machine listens on
        #   * maxconn<~Integer>  - maximum number of connections server can be sent
        #   * backup<~Boolean> - only send traffic to machine if all others are down
        def update_lb_backend_machine(lb_backend_id, lb_machine_id, options = {})
          # inconsistent, no?
          request(
            :expects => 202,
            :method  => 'PUT',
            :path    => "/api/lb_backends/#{lb_backend_id}/lb_machines/#{lb_machine_id}",
            :body    => options.map {|k,v| "#{CGI.escape(k)}=#{CGI.escape(v.to_s)}"}.join('&')
          )
        end
      end

      class Mock
      end
    end
  end
end

Version data entries

100 entries across 98 versions & 10 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb
fog-1.42.1 lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb
fog-2.0.0 lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb
fog-1.42.0 lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb
fog-1.41.0 lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb
fog-1.40.0 lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb
fog-1.39.0 lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb
fog-1.38.0 lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb
fog-1.37.0 lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb
fog-1.36.0 lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb
fog-1.35.0 lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb
fog-2.0.0.pre.0 lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb
fog-1.34.0 lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb
fog-1.33.0 lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb
fog-1.32.0 lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb
fog-1.31.0 lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/bluebox/requests/blb/update_lb_backend_machine.rb