Class: Miasma::Models::LoadBalancer

Inherits:
Types::Api show all
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

Classes: Balancer, Balancers

Instance Method Summary (collapse)

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

Parameters:

  • options (Hash) (defaults to: {})

    filter

Returns:

Raises:

  • (NotImplementedError)


49
50
51
# File 'lib/miasma/models/load_balancer.rb', line 49

def balancer_all(options={})
  raise NotImplementedError
end

- (TrueClass, FalseClass) balancer_destroy(balancer)

Delete load balancer

Parameters:

Returns:

  • (TrueClass, FalseClass)

Raises:

  • (NotImplementedError)


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

Parameters:

Returns:

Raises:

  • (NotImplementedError)


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

Parameters:

Returns:

Raises:

  • (NotImplementedError)


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

Parameters:

  • filter (Hash) (defaults to: {})

    filtering options

Returns:



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