Sha256: fbf4d209e7c9d055ce76761e2711aa63c2483bb7bcb26e4ffb53de4072be152d

Contents?: true

Size: 700 Bytes

Versions: 10

Compression:

Stored size: 700 Bytes

Contents

object false

extends "katello/api/v2/common/metadata"

child @collection[:results] => :results do
  child :product => :product do
    attributes :id, :name
  end

  child :content => :content do
    attributes :id, :name, :label
    attribute :contentUrl => :content_url
  end

  node :override do |pc|
    pc.legacy_content_override(@activation_key)
  end

  node :overrides do |pc|
    pc.content_overrides(@activation_key).map do |override|
      {:name => override.name, :value => override.computed_value}
    end
  end

  node :enabled_content_override do |pc|
    override = pc.enabled_content_override(@activation_key)
    override.computed_value if override
  end

  attributes :enabled
end

Version data entries

10 entries across 10 versions & 1 rubygems

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