2012-07-30 16:50:16 -04:00
|
|
|
require 'fog/core/model'
|
|
|
|
|
|
|
|
module Fog
|
|
|
|
module Compute
|
|
|
|
class RackspaceV2
|
|
|
|
class Flavor < Fog::Model
|
2013-01-30 09:05:10 -06:00
|
|
|
|
|
|
|
# @!attribute [r] id
|
|
|
|
# @return [String] The flavor id
|
2012-07-30 16:50:16 -04:00
|
|
|
identity :id
|
|
|
|
|
2013-01-30 09:05:10 -06:00
|
|
|
|
|
|
|
# @!attribute [r] name
|
|
|
|
# @return [String] flavor name
|
2012-07-30 16:50:16 -04:00
|
|
|
attribute :name
|
2013-01-30 09:05:10 -06:00
|
|
|
|
|
|
|
# @!attribute [r] rame
|
|
|
|
# @return [Fixnum] ram in MB
|
2012-07-30 16:50:16 -04:00
|
|
|
attribute :ram
|
2013-01-30 09:05:10 -06:00
|
|
|
|
|
|
|
# @!attribute [r] disk
|
|
|
|
# @return [String] disk space in GB
|
2012-07-30 16:50:16 -04:00
|
|
|
attribute :disk
|
2013-01-30 09:05:10 -06:00
|
|
|
|
|
|
|
# @!attribute [r] vcpus
|
|
|
|
# @return [Fixnum] number of virtual CPUs
|
2012-07-30 16:50:16 -04:00
|
|
|
attribute :vcpus
|
2013-01-30 09:05:10 -06:00
|
|
|
|
|
|
|
# @!attribute [r] links
|
|
|
|
# @return [Array] flavor links.
|
2012-07-30 16:50:16 -04:00
|
|
|
attribute :links
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|