Sha256: be7ac6f50c16ff86d192d2011897d5f41b73cb4d0a37b6605c1b6a54ae409315

Contents?: true

Size: 678 Bytes

Versions: 64

Compression:

Stored size: 678 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 => "#{service.base_path}/admin/catalog/#{id}/configuration")
        end

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

Version data entries

64 entries across 62 versions & 7 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/models/catalog_item.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/models/catalog_item.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-ecloud-0.3.0/lib/fog/compute/ecloud/models/catalog_item.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-ecloud-0.1.1/lib/fog/compute/ecloud/models/catalog_item.rb
fog-ecloud-0.3.0 lib/fog/compute/ecloud/models/catalog_item.rb
fog-ecloud-0.2.0 lib/fog/compute/ecloud/models/catalog_item.rb
fog-ecloud-0.1.3 lib/fog/compute/ecloud/models/catalog_item.rb
fog-ecloud-0.1.2 lib/fog/compute/ecloud/models/catalog_item.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/lib/fog/ecloud/models/compute/catalog_item.rb
fog-ecloud-0.1.1 lib/fog/compute/ecloud/models/catalog_item.rb
fog-ecloud-0.1.0 lib/fog/compute/ecloud/models/catalog_item.rb
fog-ecloud-0.0.2 lib/fog/ecloud/models/compute/catalog_item.rb
fog-ecloud-0.0.1 lib/fog/ecloud/models/compute/catalog_item.rb
fog-1.25.0 lib/fog/ecloud/models/compute/catalog_item.rb
nsidc-fog-1.24.1 lib/fog/ecloud/models/compute/catalog_item.rb
fog-1.24.0 lib/fog/ecloud/models/compute/catalog_item.rb
ns-fog-1.22.11 lib/fog/ecloud/models/compute/catalog_item.rb
ns-fog-1.22.10 lib/fog/ecloud/models/compute/catalog_item.rb
ns-fog-1.22.9 lib/fog/ecloud/models/compute/catalog_item.rb
ns-fog-1.22.8 lib/fog/ecloud/models/compute/catalog_item.rb