1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

Added other commands for load balancers.

This commit is contained in:
Carl Woodward 2012-08-12 10:20:17 +10:00
parent c6062b8263
commit 2163cfc5c3
7 changed files with 86 additions and 0 deletions

View file

@ -62,6 +62,12 @@ module Fog
request :list_ip_forwarding_rules
# Load Balancers
request :create_load_balancer_rule
request :delete_load_balancer_rule
request :remove_from_load_balancer_rule
request :assign_to_load_balancer_rule
request :list_load_balancer_rules
request :list_load_balancer_rule_instances
request :update_load_balancer_rule
class Mock

View file

@ -0,0 +1,13 @@
module Fog
module Compute
class Ninefold
class Real
def assign_to_load_balancer_rule(options={})
request 'assignToLoadBalancerRule', options, :expects => [200], :response_prefix => 'assigntoloadbalancerruleresponse', :response_type => Hash
end
end
end
end
end

View file

@ -0,0 +1,11 @@
module Fog
module Compute
class Ninefold
class Real
def delete_load_balancer_rule(options={})
request 'deleteLoadBalancerRule', options, :expects => [200], :response_prefix => 'deleteloadbalancerruleresponse', :response_type => Hash
end
end
end
end
end

View file

@ -0,0 +1,15 @@
module Fog
module Compute
class Ninefold
class Real
def list_load_balancer_rule_instances(options={})
request 'listLoadBalancerRuleInstances', options, :expects => [200], :response_prefix => 'listloadbalancerruleinstancesresponse', :response_type => Hash
end
end
end
end
end

View file

@ -0,0 +1,14 @@
module Fog
module Compute
class Ninefold
class Real
def list_load_balancer_rules(options={})
request 'listLoadBalancerRules', options, :expects => [200], :response_prefix => 'listloadbalancerrulesresponse', :response_type => Hash
end
end
end
end
end

View file

@ -0,0 +1,12 @@
module Fog
module Compute
class Ninefold
class Real
def remove_from_load_balancer_rule(options={})
request 'removeFromLoadBalancerRule', options, :expects => [200], :response_prefix => 'removefromloadbalancerruleresponse', :response_type => Hash
end
end
end
end
end

View file

@ -0,0 +1,15 @@
module Fog
module Compute
class Ninefold
class Real
def update_load_balancer_rule(options={})
request 'updateLoadBalancerRule', options, :expects => [200], :response_prefix => 'updateloadbalancerruleresponse', :response_type => Hash
end
end
end
end
end