Sha256: c400c72f5588bec1318e8f305925ac974972c53d7e6a51d73856545fb9208b8e

Contents?: true

Size: 1.42 KB

Versions: 8

Compression:

Stored size: 1.42 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
attributes :upstream_username

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

8 entries across 8 versions & 1 rubygems

Version Path
katello-3.3.2 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.3.1.1 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.3.1 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.3.0.1 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.3.0 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.3.0.rc2 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.3.0.rc1.1 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.3.0.rc1 app/views/katello/api/v2/repositories/show.json.rabl