Sha256: a776641dd03b2ed7c9efbf4ab601329800d5ff689932affc67503953ffd599a7

Contents?: true

Size: 1.74 KB

Versions: 19

Compression:

Stored size: 1.74 KB

Contents

#
# Author:: Celso Fernandes (<fernandes@zertico.com>)
# © Copyright IBM Corporation 2015.
#
# LICENSE: MIT (http://opensource.org/licenses/MIT)
#

module Fog
  module Softlayer
    class Product

      class Item < Fog::Model

        # A product's internal identification number
        identity  :id,                           :type => :integer

        # Some Product Items have capacity information such as RAM and bandwidth, and others. This provides the numerical representation of the capacity given in the description of this product item.
        attribute :capacity,                     :type => :float

        # A product's description
        attribute :description,                  :type => :string

        # A products tax category internal identification number
        attribute :item_tax_category_id,         :aliases => 'itemTaxCategoryId', :type => :integer

        # A unique key name for the product.
        attribute :key_name,                     :aliases => 'keyName', :type => :string

        # Detailed product description
        attribute :long_description,             :aliases => 'longDescription', :type => :string

        # The unique identifier of the SoftLayer_Software_Description tied to this item.
        attribute :software_description_id,      :aliases => 'softwareDescriptionId', :type => :integer

        # The unit of measurement that a product item is measured in.
        attribute :units,                        :aliases => 'units', :type => :string

        # A products upgrade item's internal identification number
        attribute :upgrade_item_id,              :aliases => 'upgradeItemId', :type => :integer

        def initialize(attributes = {})
          super(attributes)
        end
      end
    end
  end
end

Version data entries

19 entries across 17 versions & 3 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-softlayer-1.1.4/lib/fog/softlayer/models/product/item.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-softlayer-1.1.4/lib/fog/softlayer/models/product/item.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-softlayer-1.1.4/lib/fog/softlayer/models/product/item.rb
fog-softlayer-1.1.4 lib/fog/softlayer/models/product/item.rb
fog-softlayer-1.1.3 lib/fog/softlayer/models/product/item.rb
fog-softlayer-1.1.2 lib/fog/softlayer/models/product/item.rb
fog-softlayer-1.1.1 lib/fog/softlayer/models/product/item.rb
fog-softlayer-1.1.0 lib/fog/softlayer/models/product/item.rb
fog-softlayer-1.0.3 lib/fog/softlayer/models/product/item.rb
fog-softlayer-1.0.2 lib/fog/softlayer/models/product/item.rb
fog-softlayer-1.0.1 lib/fog/softlayer/models/product/item.rb
fog-softlayer-1.0.0 lib/fog/softlayer/models/product/item.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-softlayer-0.4.7/lib/fog/softlayer/models/product/item.rb
fog-softlayer-0.4.7 lib/fog/softlayer/models/product/item.rb
fog-softlayer-0.4.6 lib/fog/softlayer/models/product/item.rb
fog-softlayer-0.4.5 lib/fog/softlayer/models/product/item.rb
fog-softlayer-0.4.4 lib/fog/softlayer/models/product/item.rb
fog-softlayer-0.4.3 lib/fog/softlayer/models/product/item.rb
fog-softlayer-0.4.2 lib/fog/softlayer/models/product/item.rb