Sha256: c93922340dbbf50c6254bc4e8a70935dce27b8ee17443c0d5ef44cf7b980e79d

Contents?: true

Size: 665 Bytes

Versions: 9

Compression:

Stored size: 665 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 :host, :if => lambda { |sub| sub && sub.hypervisor } do |subscription|
  {
    id: subscription.hypervisor.id,
    name: subscription.hypervisor.name
  }
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-3.4.5 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.4.4 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.4.2 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.4.1 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.4.0.2 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.4.0.1 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.4.0 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.4.0.rc2 app/views/katello/api/v2/subscriptions/base.json.rabl
katello-3.4.0.rc1 app/views/katello/api/v2/subscriptions/base.json.rabl