Sha256: 69a6c0c86273bd3cbc06bbe9fb0077d77cd7cf154978e89e87968bd17186a327

Contents?: true

Size: 674 Bytes

Versions: 28

Compression:

Stored size: 674 Bytes

Contents

module Fog
  module Compute
    class Ecloud
      class CatalogItem < Fog::Ecloud::Model
        identity :href

        attribute :name, :aliases => :Name
        attribute :type, :aliases => :Type
        attribute :other_links, :aliases => :Links
        attribute :status, :aliases => :Status
        attribute :alerts, :aliases => :Alerts
        attribute :files, :aliases => :Files

        def configuration
          @configuration = Fog::Compute::Ecloud::CatalogConfigurations.new(:service => service, :href => "/cloudapi/ecloud/admin/catalog/#{id}/configuration")
        end

        def id
          href.scan(/\d+/)[0]
        end
      end
    end
  end
end

Version data entries

28 entries across 28 versions & 6 rubygems

Version Path
gapinc-fog-1.12.1.2.1 lib/fog/ecloud/models/compute/catalog_item.rb
fog-1.17.0 lib/fog/ecloud/models/compute/catalog_item.rb
fog-1.16.0 lib/fog/ecloud/models/compute/catalog_item.rb
fog-maestrodev-1.15.0.20130927082724 lib/fog/ecloud/models/compute/catalog_item.rb
fog-maestrodev-1.15.0.20130829165835 lib/fog/ecloud/models/compute/catalog_item.rb
fog-1.15.0 lib/fog/ecloud/models/compute/catalog_item.rb
gapinc-fog-1.14.0 lib/fog/ecloud/models/compute/catalog_item.rb
fog-maestrodev-1.14.0.20130806165225 lib/fog/ecloud/models/compute/catalog_item.rb
fog-1.14.0 lib/fog/ecloud/models/compute/catalog_item.rb
fog-1.13.0 lib/fog/ecloud/models/compute/catalog_item.rb
gapinc-fog-1.12.1.2 lib/fog/ecloud/models/compute/catalog_item.rb
gapinc-fog-1.12.1.1 lib/fog/ecloud/models/compute/catalog_item.rb
gapinc-fog-1.12.1a lib/fog/ecloud/models/compute/catalog_item.rb
gapinc-fog-1.12.1 lib/fog/ecloud/models/compute/catalog_item.rb
fog-1.12.1 lib/fog/ecloud/models/compute/catalog_item.rb
fog-1.12.0 lib/fog/ecloud/models/compute/catalog_item.rb
hpfog-0.0.20 lib/fog/ecloud/models/compute/catalog_item.rb
vagrant-shell-0.2.6 vendor/bundle/gems/fog-1.10.1/lib/fog/ecloud/models/compute/catalog_item.rb
vagrant-shell-0.2.5 vendor/bundle/gems/fog-1.10.1/lib/fog/ecloud/models/compute/catalog_item.rb
fog-1.11.1 lib/fog/ecloud/models/compute/catalog_item.rb