Class: Miasma::Models::AutoScale
- Inherits:
-
Types::Api
- Object
- Types::Api
- Miasma::Models::AutoScale
- 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
Instance Method Summary (collapse)
-
- (Array<Models::AutoScale::Group>) group_all(options = {})
Return all auto scale groups.
-
- (TrueClass, FalseClass) group_destroy(group)
Delete auto scale group.
-
- (Models::AutoScale::Group) group_reload(group)
Reload the group data from the API.
-
- (Models::AutoScale::Group) group_save(group)
Save auto scale group.
-
- (Types::Collection<Models::AutoScale::Groups>) groups(filter = {})
Auto scale groups.
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
49 50 51 |
# File 'lib/miasma/models/auto_scale.rb', line 49 def group_all(={}) raise NotImplementedError end |
- (TrueClass, FalseClass) group_destroy(group)
Delete auto scale group
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
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
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
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 |