Sha256: 47636f30754dab840a0534b581a1de8b0702e6eb62198fbd9634ac7dcba672ff

Contents?: true

Size: 695 Bytes

Versions: 57

Compression:

Stored size: 695 Bytes

Contents

object @resource

attributes :id, :organization_id
attributes :name, :description
attributes :interval, :next_sync
attributes :created_at, :updated_at
attributes :enabled

child :products => :products do |_product|
  extends 'katello/api/v2/common/syncable'
  attributes :id, :cp_id, :name, :label, :description

  node :repository_count do |prod|
    if prod.repositories.to_a.any?
      prod.repositories.count
    else
      0
    end
  end
end

node :permissions do |sync_plan|
  {
    :view_sync_plans => sync_plan.readable?,
    :edit_sync_plans => sync_plan.editable?,
    :destroy_sync_plans => sync_plan.deletable?
  }
end

node :sync_date do |sync_plan|
  sync_plan.plan_date_time
end

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
katello-3.8.1 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-3.7.1.1 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-3.7.1 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-3.8.0 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-3.8.0.rc3 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-3.8.0.rc2 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-3.7.0 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-3.8.0.rc1 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-3.7.0.rc2 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-3.7.0.rc1 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-3.5.2 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-3.6.0 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-3.6.0.1.rc2 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-3.6.0.rc2 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-3.6.0.rc1 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-3.5.1.1 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-3.5.1 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-3.5.0.1 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-3.5.0 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-3.5.0.rc2 app/views/katello/api/v2/sync_plans/show.json.rabl