Sha256: 9bfc9a71c2360354c0ddb058107b7f41a04d0ba265e30e0ab86a3eff46ff7f89

Contents?: true

Size: 520 Bytes

Versions: 28

Compression:

Stored size: 520 Bytes

Contents

module Fog
  module Rackspace
    class LoadBalancers
      class Real
        def set_connection_logging(load_balancer_id, value)
          data = {
            'connectionLogging' => {
              'enabled' => value.to_s
            }
          }
          request(
            :body     => MultiJson.encode(data),
            :expects  => [200, 202],
            :path     => "loadbalancers/#{load_balancer_id}/connectionlogging",
            :method   => 'PUT'
          )
         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/set_connection_logging.rb
michiels-fog-1.3.1 lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb
ftl-0.2.0 vendor/bundle/gems/fog-1.3.1/lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb
brightbox-cli-0.18.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb
fog-1.3.1 lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb
fog-1.3.0 lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb
brightbox-cli-0.17.5 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb
fog-1.2.0 lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb
ktheory-fog-1.1.2 lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb
brightbox-cli-0.17.4 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb
brightbox-cli-0.17.3 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb
brightbox-cli-0.17.2 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb
brightbox-cli-0.17.1 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb
brightbox-cli-0.17.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb
fog-1.1.2 lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb
fog_tractical-1.1.4 lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb
fog_tractical-1.1.3 lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb
brightbox-cli-0.16.0 lib/brightbox-cli/vendor/fog/lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb
fog-1.1.1 lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb
fog-1.1.0 lib/fog/rackspace/requests/load_balancers/set_connection_logging.rb