Sha256: 07ca8ecae6086aca9a3b49ddd4311609b8d84fbe096cfabab5651dd965a16c2d

Contents?: true

Size: 1.08 KB

Versions: 35

Compression:

Stored size: 1.08 KB

Contents

module Fog
  module HP
    class LB

      # List limits
      #
      # ==== Returns
      # * response<~Excon::Response>:
      #   * body<~Hash>:
      #     * 'limits'<~Hash>:
      #       * 'absolute'<~Hash>:
      #         * 'values'<~Hash>:
      #           * 'maxLoadBalancerNameLength'<~Integer> - Limit of the name of the load balancer
      #           * 'maxLoadBalancers'<~Integer> - Limit of the number of the load balancer
      #           * 'maxVIPsPerLoadBalancer'<~Integer> - Limit of the virtual IPs per load balancer
      #           * 'maxNodesPerLoadBalancer'<~Integer> - Limit of the nodes per load balancer
      class Real

        def list_limits
          request(
            :expects => 200,
            :method  => 'GET',
            :path    => 'limits'
          )
        end

      end
      class Mock
        def list_limits
          response        = Excon::Response.new
          limits          = self.data[:limits].values
          response.status = 200
          response.body   = { 'limits' => limits }
          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_limits.rb
fog-maestrodev-1.18.0.20131127194823 lib/fog/hp/requests/lb/list_limits.rb
fog-maestrodev-1.18.0.20131126183714 lib/fog/hp/requests/lb/list_limits.rb
fog-maestrodev-1.18.0.20131126122111 lib/fog/hp/requests/lb/list_limits.rb
fog-maestrodev-1.18.0.20131125111730 lib/fog/hp/requests/lb/list_limits.rb
fog-maestrodev-1.18.0.20131125083406 lib/fog/hp/requests/lb/list_limits.rb
fog-maestrodev-1.18.0.20131123105121 lib/fog/hp/requests/lb/list_limits.rb
fog-maestrodev-1.18.0.20131122203507 lib/fog/hp/requests/lb/list_limits.rb
fog-maestrodev-1.18.0.20131121075022 lib/fog/hp/requests/lb/list_limits.rb
fog-maestrodev-1.18.0.20131118164830 lib/fog/hp/requests/lb/list_limits.rb
fog-maestrodev-1.18.0.20131115184302 lib/fog/hp/requests/lb/list_limits.rb
fog-maestrodev-1.18.0.20131114200144 lib/fog/hp/requests/lb/list_limits.rb
fog-maestrodev-1.18.0.20131112185232 lib/fog/hp/requests/lb/list_limits.rb
fog-maestrodev-1.18.0.20131111203459 lib/fog/hp/requests/lb/list_limits.rb
fog-1.18.0 lib/fog/hp/requests/lb/list_limits.rb