Sha256: 72647017865b5017e393ef60a8c5b1d15307b4d683f7d5dab8bbf732f8441224

Contents?: true

Size: 758 Bytes

Versions: 3

Compression:

Stored size: 758 Bytes

Contents

object @resource

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

attributes :name
attributes :content

child :products => :products do
  attributes :id, :cp_id, :name
  node :repository_count do |product|
    product.repositories.count
  end
  child :provider => :provider do
    attribute :name
    attribute :id
  end
end

child :repositories => :repositories do
  attribute :id
  attribute :name
  attribute :content_type

  child :product do |_product|
    attributes :id, :cp_id, :name
  end
end

node :permissions do |gpg_key|
  {
    :view_gpg_keys => gpg_key.readable?,
    :edit_gpg_keys => gpg_key.editable?,
    :destroy_gpg_keys => gpg_key.deletable?,
  }
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
katello-4.15.0 app/views/katello/api/v2/gpg_keys/show.json.rabl
katello-4.15.0.rc2 app/views/katello/api/v2/gpg_keys/show.json.rabl
katello-4.15.0.rc1 app/views/katello/api/v2/gpg_keys/show.json.rabl