mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
32 lines
651 B
Ruby
32 lines
651 B
Ruby
|
require 'fog/core/collection'
|
||
|
require 'lib/fog/hp/models/lb/load_balancer'
|
||
|
|
||
|
module Fog
|
||
|
module HP
|
||
|
class LB
|
||
|
class Limits < Fog::Collection
|
||
|
model Fog::HP::LB::Limit
|
||
|
|
||
|
#{
|
||
|
# "limits" : {
|
||
|
# "absolute" : {
|
||
|
# "values" : {
|
||
|
# "maxLoadBalancerNameLength" : 128,
|
||
|
# "maxLoadBalancers" : 20,
|
||
|
# "maxNodesPerLoadBalancer" : 5,
|
||
|
# "maxVIPsPerLoadBalancer" : 1
|
||
|
#}
|
||
|
#}
|
||
|
#}
|
||
|
#}
|
||
|
def all
|
||
|
data = connection.list_load_limits.body['limits']['absolute']['values']
|
||
|
load(data)
|
||
|
end
|
||
|
|
||
|
|
||
|
|
||
|
end
|
||
|
end
|
||
|
end
|
||
|
end
|