Sha256: e3a2a270c57929d96f410366de62a98dc55929a00005af3599577deaeb40ea03

Contents?: true

Size: 738 Bytes

Versions: 12

Compression:

Stored size: 738 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
attributes :virt_who
attributes :upstream? => :upstream

node :hypervisor, :if => lambda { |sub| sub && sub.respond_to?(:hypervisor) && sub.hypervisor } do |subscription|
  {
    id: subscription.hypervisor.id,
    name: subscription.hypervisor.name
  }
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
katello-3.9.0 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.8.1 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.9.0.rc2 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.9.0.rc1 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.7.1.1 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.7.1 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.8.0 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.8.0.rc3 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.8.0.rc2 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.7.0 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.8.0.rc1 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.7.0.rc2 app/views/katello/api/v2/subscriptions/base.json.rabl