Class: Scalingo::Endpoint::Autoscaler

Inherits:
Resource
  • Object
show all
Defined in:
lib/scalingo/endpoint/autoscalers.rb

Instance Attribute Summary

Attributes included from Base

#api, #auth_api, #prefix

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Methods included from Scalingo::Endpoint

included

Methods included from ClassMethods

#resources

Methods included from Base

#initialize

Constructor Details

This class inherits a constructor from Scalingo::Endpoint::Resource

Instance Method Details

#destroyObject



22
23
24
# File 'lib/scalingo/endpoint/autoscalers.rb', line 22

def destroy
  delete
end

#update(params) ⇒ Object

  • container_type can’t be changed

Additional fields

  • disabled: if true, autoscaler will stop manipulating container formation



18
19
20
# File 'lib/scalingo/endpoint/autoscalers.rb', line 18

def update(params)
  patch(nil, autoscaler: params)
end