Sha256: 59156f6d9633ee33e2a97291fcce778dd98ce26578f404d7ecd39da807f0b8a0
Contents?: true
Size: 1.75 KB
Versions: 1
Compression:
Stored size: 1.75 KB
Contents
object @resource extends 'katello/api/v2/common/identifier' 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 attributes :major, :minor attributes :gpg_key_id attributes :content_id, :content_view_version_id, :library_instance_id attributes :product_type attributes :promoted? => :promoted node :content_counts do |repo| { :docker_image => repo.docker_images.count, :docker_tag => repo.docker_tags.count, :rpm => repo.package_count, :package => repo.package_count, :package_group => repo.package_group_count, :erratum => repo.errata.count, :puppet_module => repo.puppet_module_count } end node :permissions do |repo| { :deletable => repo.deletable? } end child :gpg_key do |_gpg| attribute :name attribute :id end child :product do |product| attribute :id attribute :cp_id attribute :name node :sync_plan do |_sync_plan| partial('katello/api/v2/sync_plans/show', :object => product.sync_plan) end 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 child :latest_dynflow_sync => :last_sync do |_object| attributes :id, :username, :started_at, :ended_at, :state, :result, :progress end node :last_sync_words do |object| if (object.latest_dynflow_sync.respond_to?('ended_at') && object.latest_dynflow_sync.ended_at) time_ago_in_words(Time.parse(object.latest_dynflow_sync.ended_at.to_s)) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
katello-2.2.2 | app/views/katello/api/v2/repositories/show.json.rabl |