Sha256: 5c9f3c344008a92ff380d9a1b3b49ffde21df72db2b54a90e1fd5006d83812af

Contents?: true

Size: 1.27 KB

Versions: 9

Compression:

Stored size: 1.27 KB

Contents

object @resource

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

attributes :content_type
attributes :docker_upstream_name
attributes :unprotected, :full_path, :checksum_type, :container_repository_name
attributes :url,
           :relative_path
extends 'katello/api/v2/repositories/base'

attributes :major, :minor
attributes :gpg_key_id
attributes :content_id, :content_view_version_id, :library_instance_id
attributes :product_type
attributes :promoted? => :promoted

if @resource.is_a?(Katello::Repository)
  if @resource.distribution_version || @resource.distribution_arch || @resource.distribution_family || @resource.distribution_variant
    attributes :distribution_version
    attributes :distribution_arch
    attributes :distribution_bootable? => :distribution_bootable
    attributes :distribution_family
    attributes :distribution_variant
  end
end

node :permissions do |repo|
  {
    :deletable => repo.deletable?
  }
end

child :gpg_key do |_gpg|
  attribute :name
  attribute :id
end

if @object && @object.library_instance_id.nil?

  node :content_view_environments do |repository|
    Katello::RepositoryPresenter.new(repository).content_view_environments
  end

end

child :environment => :environment do |_repo|
  attribute :id
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-2.4.5 app/views/katello/api/v2/repositories/show.json.rabl
katello-2.4.4 app/views/katello/api/v2/repositories/show.json.rabl
katello-2.4.3 app/views/katello/api/v2/repositories/show.json.rabl
katello-2.4.2 app/views/katello/api/v2/repositories/show.json.rabl
katello-2.4.1 app/views/katello/api/v2/repositories/show.json.rabl
katello-2.4.0 app/views/katello/api/v2/repositories/show.json.rabl
katello-2.4.0.rc3 app/views/katello/api/v2/repositories/show.json.rabl
katello-2.4.0.rc2 app/views/katello/api/v2/repositories/show.json.rabl
katello-2.4.0.rc1 app/views/katello/api/v2/repositories/show.json.rabl