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-4.4.2.1 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-4.4.2 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-4.5.1 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-4.6.0 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-4.6.0.rc2 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-4.6.0.rc1 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-4.5.0 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-4.5.0.rc2 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-4.4.1 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-4.5.0.rc1 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-4.4.0.2 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-4.4.0.1 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-4.3.1 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-4.4.0 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-4.4.0.rc2 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-4.4.0.rc1 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-4.2.2 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-4.3.0 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-4.3.0.rc4 app/views/katello/api/v2/activation_keys/base.json.rabl
katello-4.3.0.rc3 app/views/katello/api/v2/activation_keys/base.json.rabl