Class: Miasma::Models::LoadBalancer
- Inherits:
-
Types::Api
- Object
- Types::Api
- Miasma::Models::LoadBalancer
- Defined in:
- lib/miasma/models/load_balancer.rb,
lib/miasma/contrib/aws/load_balancer.rb,
lib/miasma/models/load_balancer/balancer.rb,
lib/miasma/models/load_balancer/balancers.rb,
lib/miasma/contrib/rackspace/load_balancer.rb
Overview
Abstract load balancer API
Defined Under Namespace
Classes: Aws, Balancer, Balancers, Rackspace
Instance Method Summary collapse
-
#balancer_all(options = {}) ⇒ Array<Models::LoadBalancer::Balancer>
Return all load balancers.
-
#balancer_destroy(balancer) ⇒ TrueClass, FalseClass
Delete load balancer.
-
#balancer_reload(balancer) ⇒ Models::LoadBalancer::Balancer
Reload the balancer data from the API.
-
#balancer_save(balancer) ⇒ Models::LoadBalancer::Balancer
Save load balancer.
-
#balancers(filter = {}) ⇒ Types::Collection<Models::LoadBalancer::Balancer>
Load balancers.
Methods inherited from Types::Api
#api_for, #connect, #connection, #endpoint, #format_response, #initialize, #make_request, #provider, #request
Methods included from Utils::Memoization
#_memo, #clear_memoizations!, #memoize, #unmemoize
Methods included from Utils::Lazy
Constructor Details
This class inherits a constructor from Miasma::Types::Api
Instance Method Details
#balancer_all(options = {}) ⇒ Array<Models::LoadBalancer::Balancer>
Return all load balancers
49 50 51 |
# File 'lib/miasma/models/load_balancer.rb', line 49 def balancer_all(={}) raise NotImplementedError end |
#balancer_destroy(balancer) ⇒ TrueClass, FalseClass
Delete load balancer
41 42 43 |
# File 'lib/miasma/models/load_balancer.rb', line 41 def balancer_destroy(balancer) raise NotImplementedError end |
#balancer_reload(balancer) ⇒ Models::LoadBalancer::Balancer
Reload the balancer data from the API
33 34 35 |
# File 'lib/miasma/models/load_balancer.rb', line 33 def balancer_reload(balancer) raise NotImplementedError end |
#balancer_save(balancer) ⇒ Models::LoadBalancer::Balancer
Save load balancer
25 26 27 |
# File 'lib/miasma/models/load_balancer.rb', line 25 def balancer_save(balancer) raise NotImplementedError end |
#balancers(filter = {}) ⇒ Types::Collection<Models::LoadBalancer::Balancer>
Load balancers
15 16 17 18 19 |
# File 'lib/miasma/models/load_balancer.rb', line 15 def balancers(filter={}) memoize(:balancers) do Balancers.new(self) end end |