2011-06-12 16:07:42 -04:00
|
|
|
require 'fog/core/model'
|
2011-06-21 17:15:33 -04:00
|
|
|
|
2011-06-12 16:07:42 -04:00
|
|
|
module Fog
|
|
|
|
module AWS
|
|
|
|
class AutoScaling
|
|
|
|
class Activity < Fog::Model
|
|
|
|
|
|
|
|
identity :id, :aliases => 'ActivityId'
|
|
|
|
attribute :auto_scaling_group_name, :aliases => 'AutoScalingGroupName'
|
|
|
|
attribute :cause, :aliases => 'Cause'
|
|
|
|
attribute :description, :aliases => 'Description'
|
2012-02-22 21:19:32 -05:00
|
|
|
attribute :end_time, :aliases => 'EndTime'
|
2011-06-12 16:07:42 -04:00
|
|
|
attribute :progress, :aliases => 'Progress'
|
|
|
|
attribute :start_time, :aliases => 'StartTime'
|
|
|
|
attribute :status_code, :aliases => 'StatusCode'
|
|
|
|
attribute :status_message, :aliases => 'StatusMessage'
|
|
|
|
|
|
|
|
def group
|
|
|
|
connection.groups.get(attributes['AutoScalingGroupName'])
|
|
|
|
end
|
|
|
|
|
2011-06-21 17:15:33 -04:00
|
|
|
def save
|
|
|
|
raise "Operation not supported"
|
|
|
|
end
|
|
|
|
|
2011-06-12 16:07:42 -04:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|