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