Sha256: fd0855ae8cb233f7fd9a7b6794ec040d5b8201da4d9c871fc234f24bf32f6cee

Contents?: true

Size: 1010 Bytes

Versions: 22

Compression:

Stored size: 1010 Bytes

Contents

object @resource

extends 'katello/api/v2/common/identifier'

node(:type) { |filter| filter.class::CONTENT_TYPE }
attributes :inclusion

child :content_view => :content_view do
  extends 'katello/api/v2/content_views/base'
end

child :repositories => :repositories do
  extends 'katello/api/v2/repositories/base'
end

if @resource.respond_to?(:package_rules)
  attributes :original_packages
end

node :rules do |filter|
  if filter.respond_to?(:package_rules)
    filter.package_rules.map do |rule|
      partial('katello/api/v2/content_view_filter_rules/show', :object => rule)
    end

  elsif filter.respond_to?(:package_group_rules)
    filter.package_group_rules.map do |rule|
      partial('katello/api/v2/content_view_filter_rules/show', :object => rule)
    end

  elsif filter.respond_to?(:erratum_rules)
    filter.erratum_rules.map do |rule|
      partial('katello/api/v2/content_view_filter_rules/show', :object => rule)
    end

  else
    []
  end
end

extends 'katello/api/v2/common/timestamps'

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
katello-3.3.0.rc1.1 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.3.0.rc1 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.2.1.1 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.2.1 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.2.0 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.2.0.rc3 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.2.0.rc2 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.2.0.rc1.1 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.2.0.rc1 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.1.0.1 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.1.0 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.1.0.rc2.1 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.0.2 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.1.0.rc1 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.0.1 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.0.0 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.0.0.rc7 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.0.0.rc5 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.0.0.rc4 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.0.0.rc3 app/views/katello/api/v2/content_view_filters/base.json.rabl