Sha256: 1114be6e908119c2f6bab982b5b8ba9b12c661d7c8ab7ff80600cf71d92fb033

Contents?: true

Size: 1.23 KB

Versions: 35

Compression:

Stored size: 1.23 KB

Contents

module Fog
  module HP
    class LB

      # List all load balancers
      #
      # ==== Returns
      # * response<~Excon::Response>:
      #   * body<~Hash>:
      #     * 'loadBalancers'<~Array>:
      #       * 'id'<~String> - UUID of the load balancer
      #       * 'name'<~String> - Name of the load balancer
      #       * 'protocol'<~String> - Protocol for the load balancer
      #       * 'port'<~String> - Port for the load balancer
      #       * 'algorithm'<~String> - Algorithm for the load balancer
      #       * 'status'<~String> - Status for the load balancer
      #       * 'created'<~String> - created date time stamp
      #       * 'updated'<~String> - updated date time stamp
      #       * 'nodeCount'<~Integer> - Nodes attached to the load balancer
      class Real
        def list_load_balancers
          request(
            :expects => 200,
            :method  => 'GET',
            :path    => 'loadbalancers'
          )
        end

      end
      class Mock
        def list_load_balancers
          response = Excon::Response.new
          lbs = self.data[:lbs].values
          response.status = 200
          response.body = { 'loadBalancers' => lbs }
          response
        end
      end
    end
  end
end

Version data entries

35 entries across 35 versions & 2 rubygems

Version Path
fog-maestrodev-1.18.0.20131205181604 lib/fog/hp/requests/lb/list_load_balancers.rb
fog-maestrodev-1.18.0.20131127194823 lib/fog/hp/requests/lb/list_load_balancers.rb
fog-maestrodev-1.18.0.20131126183714 lib/fog/hp/requests/lb/list_load_balancers.rb
fog-maestrodev-1.18.0.20131126122111 lib/fog/hp/requests/lb/list_load_balancers.rb
fog-maestrodev-1.18.0.20131125111730 lib/fog/hp/requests/lb/list_load_balancers.rb
fog-maestrodev-1.18.0.20131125083406 lib/fog/hp/requests/lb/list_load_balancers.rb
fog-maestrodev-1.18.0.20131123105121 lib/fog/hp/requests/lb/list_load_balancers.rb
fog-maestrodev-1.18.0.20131122203507 lib/fog/hp/requests/lb/list_load_balancers.rb
fog-maestrodev-1.18.0.20131121075022 lib/fog/hp/requests/lb/list_load_balancers.rb
fog-maestrodev-1.18.0.20131118164830 lib/fog/hp/requests/lb/list_load_balancers.rb
fog-maestrodev-1.18.0.20131115184302 lib/fog/hp/requests/lb/list_load_balancers.rb
fog-maestrodev-1.18.0.20131114200144 lib/fog/hp/requests/lb/list_load_balancers.rb
fog-maestrodev-1.18.0.20131112185232 lib/fog/hp/requests/lb/list_load_balancers.rb
fog-maestrodev-1.18.0.20131111203459 lib/fog/hp/requests/lb/list_load_balancers.rb
fog-1.18.0 lib/fog/hp/requests/lb/list_load_balancers.rb