Sha256: 90e1538f0fe65d8e55cf189222905c2850140c940e2d1218e881c9f991371ae0

Contents?: true

Size: 1.15 KB

Versions: 65

Compression:

Stored size: 1.15 KB

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

  elsif filter.respond_to?(:docker_rules)
    filter.docker_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

65 entries across 65 versions & 1 rubygems

Version Path
katello-3.13.4 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.13.3 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.13.2 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.13.1 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.13.0 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.13.0.rc2.1 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.13.0.rc2 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.12.3 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.12.2 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.13.0.rc1 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.12.1 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.11.2 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.10.2 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.12.0 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.12.0.rc2 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.10.1.1 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.12.0.rc1 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.10.1 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.11.1 app/views/katello/api/v2/content_view_filters/base.json.rabl
katello-3.11.0 app/views/katello/api/v2/content_view_filters/base.json.rabl