Sha256: b4fc1b46ab532179507534ef90b39693750d678bb8ecb41c7b7bffbc23fa1d2a

Contents?: true

Size: 1.64 KB

Versions: 16

Compression:

Stored size: 1.64 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
attributes :ostree_upstream_sync_policy, :ostree_upstream_sync_depth, :compute_ostree_upstream_sync_depth => :computed_ostree_upstream_sync_depth

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

node :upstream_password_exists do |repo|
  repo.upstream_password.present?
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

16 entries across 16 versions & 1 rubygems

Version Path
katello-3.5.2 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.5.1.1 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.5.1 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.5.0.1 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.5.0 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.5.0.rc2 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.5.0.rc1 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.4.5 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.4.4 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.4.2 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.4.1 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.4.0.2 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.4.0.1 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.4.0 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.4.0.rc2 app/views/katello/api/v2/repositories/show.json.rabl
katello-3.4.0.rc1 app/views/katello/api/v2/repositories/show.json.rabl