Sha256: 894610a5b2e247391b763a828173b26bf1fcaa2d5933462d99f2e560ec966a13
Contents?: true
Size: 909 Bytes
Versions: 10
Compression:
Stored size: 909 Bytes
Contents
object @resource @resource ||= @object extends "katello/api/v2/products/base" extends 'katello/api/v2/common/org_reference' attributes :productContent => :product_content attributes :available_content => :available_content child :library_repositories => :repositories do |_repo| attributes :name, :id end node(:gpg_key, :unless => lambda { |product| product.gpg_key.nil? }) do |product| {:id => product.gpg_key.id, :name => product.gpg_key.name} end child :provider do attribute :name end node :permissions do |product| { :view_products => product.readable?, :edit_products => product.editable?, :destroy_products => product.deletable?, :sync_products => product.syncable? } end node(:published_content_view_ids) do |product| product.published_content_views.map(&:id).uniq end node :readonly do |product| product.redhat? end extends 'katello/api/v2/common/timestamps'
Version data entries
10 entries across 10 versions & 1 rubygems