Class: Miasma::Models::AutoScale

Inherits:
Types::Api show all
Defined in:
lib/miasma/models/auto_scale.rb,
lib/miasma/models/auto_scale/group.rb,
lib/miasma/models/auto_scale/groups.rb

Overview

Abstract auto scale API

Defined Under Namespace

Classes: Group, Groups

Instance Method Summary (collapse)

Constructor Details

This class inherits a constructor from Miasma::Types::Api

Instance Method Details

- (Array<Models::AutoScale::Group>) group_all(options = {})

Return all auto scale groups

Parameters:

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

    filter

Returns:

Raises:

  • (NotImplementedError)


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

def group_all(options={})
  raise NotImplementedError
end

- (TrueClass, FalseClass) group_destroy(group)

Delete auto scale group

Parameters:

Returns:

  • (TrueClass, FalseClass)

Raises:

  • (NotImplementedError)


41
42
43
# File 'lib/miasma/models/auto_scale.rb', line 41

def group_destroy(group)
  raise NotImplementedError
end

- (Models::AutoScale::Group) group_reload(group)

Reload the group data from the API

Parameters:

Returns:

Raises:

  • (NotImplementedError)


33
34
35
# File 'lib/miasma/models/auto_scale.rb', line 33

def group_reload(group)
  raise NotImplementedError
end

- (Models::AutoScale::Group) group_save(group)

Save auto scale group

Parameters:

Returns:

Raises:

  • (NotImplementedError)


25
26
27
# File 'lib/miasma/models/auto_scale.rb', line 25

def group_save(group)
  raise NotImplementedError
end

- (Types::Collection<Models::AutoScale::Groups>) groups(filter = {})

Auto scale groups

Parameters:

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

    filtering options

Returns:



15
16
17
18
19
# File 'lib/miasma/models/auto_scale.rb', line 15

def groups(filter={})
  memoize(:groups) do
    Groups.new(self)
  end
end