Sha256: ada8ea74af530b49fc2b917b0b34b6c157c9ae7d868df2a24dbbce5c6a8e6c0a

Contents?: true

Size: 706 Bytes

Versions: 7

Compression:

Stored size: 706 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

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
katello-3.5.2 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.6.0 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.6.0.1.rc2 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.6.0.rc2 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.6.0.rc1 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.5.1.1 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.5.1 app/views/katello/api/v2/subscriptions/base.json.rabl