Sha256: 34aa39b7a246e823d1dd6e7db6a1392ebd4b240e2cce62bf271e6a093e1a078c

Contents?: true

Size: 702 Bytes

Versions: 7

Compression:

Stored size: 702 Bytes

Contents

object @resource
extends 'katello/api/v2/common/identifier'

extends 'katello/api/v2/common/timestamps'
attributes :default_environment? => :default

child :organization => :organization do
  attributes :name, :label, :id
end

node :content_view do |cve|
  cve.content_view&.slice(:id, :name, :label, :default)
end

node :lifecycle_environment do |cve|
  cve.environment&.slice(:id, :name, :label, :library)
end

node :environment do |cve|
  cve.environment&.slice(:id, :name, :label, :library)
end

child :activation_keys => :activation_keys do
  attributes :id, :name, :label
end

node :activation_keys_count do |cve|
  cve.activation_keys.count
end

node :hosts_count do |cve|
  cve.hosts.count
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
katello-4.16.0 app/views/katello/api/v2/content_view_environments/show.json.rabl
katello-4.15.1 app/views/katello/api/v2/content_view_environments/show.json.rabl
katello-4.16.0.rc2 app/views/katello/api/v2/content_view_environments/show.json.rabl
katello-4.16.0.rc1 app/views/katello/api/v2/content_view_environments/show.json.rabl
katello-4.15.0 app/views/katello/api/v2/content_view_environments/show.json.rabl
katello-4.15.0.rc2 app/views/katello/api/v2/content_view_environments/show.json.rabl
katello-4.15.0.rc1 app/views/katello/api/v2/content_view_environments/show.json.rabl