Sha256: 203d141e8b064ab012fd243ce83f3bc29ad3ef3b6125282f065fec9a94f6eb73

Contents?: true

Size: 628 Bytes

Versions: 20

Compression:

Stored size: 628 Bytes

Contents

object @resource ||= @object

attributes :id
attributes :cp_id
attributes :subscription_id
attributes :name
attributes :start_date, :end_date
attributes :available, :quantity, :consumed
attributes :account_number, :contract_number
attributes :support_level
attributes :product_id
attributes :sockets, :cores, :ram
attributes :instance_multiplier, :stacking_id, :multi_entitlement
attributes :type
attributes :name => :product_name
attributes :unmapped_guest
attributes :virt_only

node :host, :if => lambda { |sub| sub && sub.host } do |subscription|
  {
    id: subscription.host.uuid,
    name: subscription.host.name
  }
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
katello-3.1.0.1 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.1.0 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.1.0.rc2.1 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.0.2 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-2.4.5 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.1.0.rc1 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.0.1 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-2.4.4 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.0.0 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-2.4.3 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.0.0.rc7 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.0.0.rc5 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-2.4.2 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.0.0.rc4 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.0.0.rc3 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.0.0.rc2 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.0.0.rc1 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-2.4.1 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-2.4.0 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-2.4.0.rc3 app/views/katello/api/v2/subscriptions/base.json.rabl