Sha256: 6482f89747130373ea5472da5f490ce62d71aed6c353d4aaabbc739dcc32ca96

Contents?: true

Size: 739 Bytes

Versions: 117

Compression:

Stored size: 739 Bytes

Contents

object @resource

attributes :id, :organization_id
attributes :name, :description
attributes :interval, :next_sync
attributes :sync_date_sans_tz => :sync_date
attributes :created_at, :updated_at
attributes :enabled, :foreman_tasks_recurring_logic_id
attributes :cron_expression

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

Version data entries

117 entries across 117 versions & 1 rubygems

Version Path
katello-4.0.2.1 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-4.1.2.1 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-4.0.2 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-4.1.2 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-3.18.4 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-4.1.1 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-4.1.0 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-4.0.1.2 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-3.18.3.1 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-4.1.0.rc2.2 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-4.1.0.rc2.1 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-4.0.1.1 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-3.18.3 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-4.1.0.rc2 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-4.0.1 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-4.1.0.rc1.1 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-4.1.0.rc1 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-4.0.0 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-4.0.0.rc3.1 app/views/katello/api/v2/sync_plans/show.json.rabl
katello-4.0.0.rc3 app/views/katello/api/v2/sync_plans/show.json.rabl