Sha256: b2089a4ff044617609892d04fb08542eb7d0c74096a3f19b385c7be5936a044c

Contents?: true

Size: 1.38 KB

Versions: 24

Compression:

Stored size: 1.38 KB

Contents

module Fog
  module Compute
    class Cloudstack
      class Flavor < Fog::Model
        identity  :id,              :aliases => 'id'
        attribute :cpu_number,      :aliases => 'cpunumber'
        attribute :cpu_speed,       :aliases => 'cpuspeed'
        attribute :created,         :type => :time
        attribute :default_use,     :aliases => 'defaultuse'
        attribute :display_text,    :aliases => 'display_text'
        attribute :domain
        attribute :host_tags,       :aliases => 'host_tags'
        attribute :is_system,       :aliases => 'issystem', :type => :boolean
        attribute :is_volatile,     :aliases => 'isvolatile', :type => :boolean
        attribute :is_customized,   :aliases => 'iscustomized', :type => :boolean
        attribute :limit_cpu_use,   :aliases => 'limitcpuuse'
        attribute :tags
        attribute :system_vm_type,  :aliases => 'systemvm'
        attribute :storage_type,    :aliases => 'storagetype'
        attribute :offer_ha,        :aliases => 'offerha'
        attribute :network_rate,    :aliases => 'networkrate'
        attribute :name
        attribute :memory

        def save
          raise Fog::Errors::Error.new('Creating a flavor is not supported')
        end

        def destroy
          raise Fog::Errors::Error.new('Destroying a flavor is not supported')
        end

      end # Flavor
    end # Cloudstack
  end # Compute
end # Fog

Version data entries

24 entries across 22 versions & 3 rubygems

Version Path
fog-2.1.0 lib/fog/cloudstack/models/compute/flavor.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-1.42.1/lib/fog/cloudstack/models/compute/flavor.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-1.42.1/lib/fog/cloudstack/models/compute/flavor.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-1.42.1/lib/fog/cloudstack/models/compute/flavor.rb
fog-1.42.1 lib/fog/cloudstack/models/compute/flavor.rb
fog-2.0.0 lib/fog/cloudstack/models/compute/flavor.rb
fog-1.42.0 lib/fog/cloudstack/models/compute/flavor.rb
fog-1.41.0 lib/fog/cloudstack/models/compute/flavor.rb
fog-1.40.0 lib/fog/cloudstack/models/compute/flavor.rb
fog-1.39.0 lib/fog/cloudstack/models/compute/flavor.rb
fog-1.38.0 lib/fog/cloudstack/models/compute/flavor.rb
fog-1.37.0 lib/fog/cloudstack/models/compute/flavor.rb
fog-1.36.0 lib/fog/cloudstack/models/compute/flavor.rb
fog-1.35.0 lib/fog/cloudstack/models/compute/flavor.rb
fog-2.0.0.pre.0 lib/fog/cloudstack/models/compute/flavor.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/cloudstack/models/compute/flavor.rb
fog-1.34.0 lib/fog/cloudstack/models/compute/flavor.rb
fog-1.33.0 lib/fog/cloudstack/models/compute/flavor.rb
fog-1.32.0 lib/fog/cloudstack/models/compute/flavor.rb
fog-1.31.0 lib/fog/cloudstack/models/compute/flavor.rb