2011-08-10 09:03:51 -04:00
|
|
|
require 'fog/core/model'
|
|
|
|
|
|
|
|
module Fog
|
|
|
|
module Glesys
|
|
|
|
class Compute
|
|
|
|
|
|
|
|
class Template < Fog::Model
|
|
|
|
extend Fog::Deprecation
|
|
|
|
|
2013-01-26 09:47:07 -05:00
|
|
|
identity :name
|
2011-08-10 09:03:51 -04:00
|
|
|
|
|
|
|
attribute :platform
|
2013-01-26 09:47:07 -05:00
|
|
|
attribute :operating_system, :aliases => "operatingsystem"
|
2013-01-30 15:50:22 -05:00
|
|
|
attribute :minimum_memory_size, :aliases => "minimummemorysize"
|
2013-01-26 09:47:07 -05:00
|
|
|
attribute :minimum_disk_size, :aliases => "minimumdisksize"
|
|
|
|
attribute :instance_cost, :aliases => "instancecost"
|
|
|
|
attribute :license_cost, :aliases => "licensecost"
|
2011-08-10 09:03:51 -04:00
|
|
|
|
|
|
|
def list
|
2012-12-22 18:27:08 -05:00
|
|
|
service.template_list
|
2011-08-10 09:03:51 -04:00
|
|
|
end
|
|
|
|
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|