Sha256: 053dc5bfee57f19da57c00d0fd6a241fa9241cc6a9dbece9d141184ddaa5a55c

Contents?: true

Size: 1.39 KB

Versions: 7

Compression:

Stored size: 1.39 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 :mirror_on_sync, :verify_ssl_on_sync
attributes :unprotected, :full_path, :checksum_type, :container_repository_name
attributes :download_policy
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
attributes :ostree_branch_names => :ostree_branches

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

7 entries across 7 versions & 1 rubygems

Version Path
katello-3.2.1.1 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.2.1 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.2.0 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.2.0.rc3 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.2.0.rc2 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.2.0.rc1.1 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.2.0.rc1 app/views/katello/api/v2/repositories/show.json.rabl