2011-02-17 13:44:46 -05:00
|
|
|
module Fog
|
2011-06-16 19:28:54 -04:00
|
|
|
module Compute
|
|
|
|
class Ecloud
|
2011-02-17 13:44:46 -05:00
|
|
|
class Task < Fog::Ecloud::Model
|
2012-06-07 12:50:11 -04:00
|
|
|
identity :href
|
2011-02-17 13:44:46 -05:00
|
|
|
|
2012-06-07 12:50:11 -04:00
|
|
|
attribute :type , :aliases => :Type
|
|
|
|
attribute :operation, :aliases => :Operation
|
|
|
|
attribute :status, :aliases => :Status
|
|
|
|
attribute :impacted_item, :aliases => :ImpactedItem
|
|
|
|
attribute :start_time, :aliases => :StartTime
|
|
|
|
attribute :completed_time, :aliases => :CompletedTime
|
|
|
|
attribute :notes, :aliases => :Notes
|
|
|
|
attribute :error_message, :aliases => :ErrorMessage
|
|
|
|
attribute :initiated_by, :aliases => :InitiatedBy
|
2011-02-17 13:44:46 -05:00
|
|
|
|
2012-11-27 19:57:16 -05:00
|
|
|
def ready?
|
|
|
|
!self.completed_time.nil?
|
|
|
|
end
|
2011-02-17 13:44:46 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|