Sha256: c8ff563156c77ae98cfb6d9f7cef0efe67b9a84425bfcc90d6c7b598517bf329

Contents?: true

Size: 548 Bytes

Versions: 28

Compression:

Stored size: 548 Bytes

Contents

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