Sha256: aa9dc7be6aa9545529d4b1e9cf9e8d7fa4be7c49da8fb9ada0777090091b0076

Contents?: true

Size: 916 Bytes

Versions: 130

Compression:

Stored size: 916 Bytes

Contents

extends 'katello/api/v2/common/org_reference'
extends 'katello/api/v2/common/timestamps'

attributes :id, :name, :description, :unlimited_hosts, :auto_attach

attributes :content_view_id

child :content_view => :content_view do
  attributes :id, :name
end

child :environment => :environment do
  attributes :name, :id
end
attributes :environment_id

attributes :usage_count, :user_id, :max_hosts, :system_template_id, :release_version, :purpose_usage, :purpose_role

node :purpose_addons do |key|
  key.purpose_addons.pluck(:name)
end

node :permissions do |activation_key|
  {
    :view_activation_keys => activation_key.readable?,
    :edit_activation_keys => activation_key.editable?,
    :destroy_activation_keys => activation_key.deletable?
  }
end

child :products => :products do |_product|
  attributes :id, :name
end

child :host_collections => :host_collections do
  attributes :id
  attributes :name
end

Version data entries

130 entries across 130 versions & 1 rubygems

Version Path
katello-3.18.1 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-3.18.0 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-3.17.1 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-3.16.2 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-3.18.0.rc2.1 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-3.18.0.rc2 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-3.17.0 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-3.18.0.rc1 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-3.17.0.rc2.2 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-3.17.0.rc2.1 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-3.16.1.2 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-3.16.1.1 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-3.17.0.rc2 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-3.16.1 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-3.17.0.rc1 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-3.16.0 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-3.16.0.rc5.1 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-3.16.0.rc5 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-3.16.0.rc4.1 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-3.15.3.1 app/views/katello/api/v2/activation_keys/base.json.rabl