1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/lib/fog/rackspace/models/auto_scale/group_config.rb

34 lines
No EOL
723 B
Ruby

require 'fog/core/model'
module Fog
module Rackspace
class AutoScale
class GroupConfig < Fog::AutoScale::Rackspace::Config
identity :id
attribute :name
attribute :cooldown
attribute :min_entities
attribute :max_entities
attribute :metadata
def update
requires :identity
options = {
'name' => name,
'cooldown' => cooldown,
'min_entities' => min_entities,
'max_entities' => max_entities,
'metadata' => metadata
}
data = service.update_group_config(identity, options)
merge_attributes(data.body)
true
end
end
end
end
end