Sha256: 54569fd397502badab3395c37fc84a082d19c733fea2ebee5a2a0750709175e9

Contents?: true

Size: 1.21 KB

Versions: 9

Compression:

Stored size: 1.21 KB

Contents

object @resource

attributes :id, :cp_id, :name, :label, :description

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

attributes :provider_id
attributes :sync_plan_id
attributes :sync_summary
attributes :gpg_key_id
attributes :redhat? => :redhat

attributes :available_content => :available_content, :if => params[:include_available_content]

node :sync_status do |product|
  {
    :id => product.sync_status[:id],
    :product_id => product.sync_status[:product_id],
    :progress => product.sync_status[:progress],
    :sync_id => product.sync_status[:sync_id],
    :state => product.sync_status[:state],
    :raw_state => product.sync_status[:raw_state],
    :start_time => product.sync_status[:start_time],
    :finish_time => product.sync_status[:finish_time],
    :duration => product.sync_status[:duration],
    :display_size => product.sync_status[:display_size],
    :size => product.sync_status[:size],
    :is_running => product.sync_status[:is_running],
    :error_details => product.sync_status[:error_details]
  }
end

child :sync_plan do
  attributes :name, :description, :sync_date, :interval, :next_sync
end

node :repository_count do |product|
  product.library_repositories.count
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
katello-3.0.2 app/views/katello/api/v2/products/base.json.rabl
katello-3.0.1 app/views/katello/api/v2/products/base.json.rabl
katello-3.0.0 app/views/katello/api/v2/products/base.json.rabl
katello-3.0.0.rc7 app/views/katello/api/v2/products/base.json.rabl
katello-3.0.0.rc5 app/views/katello/api/v2/products/base.json.rabl
katello-3.0.0.rc4 app/views/katello/api/v2/products/base.json.rabl
katello-3.0.0.rc3 app/views/katello/api/v2/products/base.json.rabl
katello-3.0.0.rc2 app/views/katello/api/v2/products/base.json.rabl
katello-3.0.0.rc1 app/views/katello/api/v2/products/base.json.rabl