Class: Miasma::Models::LoadBalancer
- Inherits:
-
Types::Api
- Object
- Types::Api
- Miasma::Models::LoadBalancer
- Defined in:
- lib/miasma/models/load_balancer.rb,
lib/miasma/models/load_balancer/balancer.rb,
lib/miasma/models/load_balancer/balancers.rb
Overview
Abstract load balancer API
Defined Under Namespace
Instance Method Summary (collapse)
-
- (Array<Models::LoadBalancer::Balancer>) balancer_all(options = {})
Return all load balancers.
-
- (TrueClass, FalseClass) balancer_destroy(balancer)
Delete load balancer.
-
- (Models::LoadBalancer::Balancer) balancer_reload(balancer)
Reload the balancer data from the API.
-
- (Models::LoadBalancer::Balancer) balancer_save(balancer)
Save load balancer.
-
- (Types::Collection<Models::LoadBalancer::Balancer>) balancers(filter = {})
Load balancers.
Constructor Details
This class inherits a constructor from Miasma::Types::Api
Instance Method Details
- (Array<Models::LoadBalancer::Balancer>) balancer_all(options = {})
Return all load balancers
49 50 51 |
# File 'lib/miasma/models/load_balancer.rb', line 49 def balancer_all(={}) raise NotImplementedError end |
- (TrueClass, FalseClass) balancer_destroy(balancer)
Delete load balancer
41 42 43 |
# File 'lib/miasma/models/load_balancer.rb', line 41 def balancer_destroy(balancer) raise NotImplementedError end |
- (Models::LoadBalancer::Balancer) balancer_reload(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 |
- (Models::LoadBalancer::Balancer) balancer_save(balancer)
Save load balancer
25 26 27 |
# File 'lib/miasma/models/load_balancer.rb', line 25 def balancer_save(balancer) raise NotImplementedError end |
- (Types::Collection<Models::LoadBalancer::Balancer>) balancers(filter = {})
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 |