Sha256: 55ed577c7bb710f0a3b398b585a9ff3c7d5cb65e804e6e0e70d8a6e5ccf07187

Contents?: true

Size: 962 Bytes

Versions: 38

Compression:

Stored size: 962 Bytes

Contents

object @organization

extends "api/v2/taxonomies/show"

attributes :task_id, :label, :redhat_repository_url

attributes :system_purposes, :system_purposes
attributes :service_levels, :service_level

node :simple_content_access do |org|
  org.simple_content_access?
end

node :owner_details do |org|
  partial('katello/api/v2/organizations/owner_details', object: OpenStruct.new(org.owner_details))
end

node :cdn_configuration do |org|
  partial('katello/api/v2/cdn_configurations/show', object: org.cdn_configuration)
end

node :default_content_view_id do |org|
  org.default_content_view.id
end

node(:composite_content_views_count) { Katello::ContentView.readable&.in_organization(Organization.current)&.composite&.count }
node(:content_view_components_count) do
  Katello::ContentView.readable&.
    in_organization(Organization.current)&.
    non_composite&.
    non_default&.
    ignore_generated&.count
end

node :library_id do |org|
  org.library.id
end

Version data entries

38 entries across 38 versions & 1 rubygems

Version Path
katello-4.12.1 app/views/katello/api/v2/organizations/show.json.rabl
katello-4.12.0 app/views/katello/api/v2/organizations/show.json.rabl
katello-4.12.0.rc3 app/views/katello/api/v2/organizations/show.json.rabl
katello-4.12.0.rc2 app/views/katello/api/v2/organizations/show.json.rabl
katello-4.12.0.rc1 app/views/katello/api/v2/organizations/show.json.rabl
katello-4.11.1 app/views/katello/api/v2/organizations/show.json.rabl
katello-4.11.0 app/views/katello/api/v2/organizations/show.json.rabl
katello-4.11.0.rc2 app/views/katello/api/v2/organizations/show.json.rabl
katello-4.11.0.rc1 app/views/katello/api/v2/organizations/show.json.rabl
katello-4.10.0 app/views/katello/api/v2/organizations/show.json.rabl
katello-4.9.2 app/views/katello/api/v2/organizations/show.json.rabl
katello-4.10.0.rc2 app/views/katello/api/v2/organizations/show.json.rabl
katello-4.10.0.rc1 app/views/katello/api/v2/organizations/show.json.rabl
katello-4.8.4 app/views/katello/api/v2/organizations/show.json.rabl
katello-4.9.1 app/views/katello/api/v2/organizations/show.json.rabl
katello-4.8.3 app/views/katello/api/v2/organizations/show.json.rabl
katello-4.9.0 app/views/katello/api/v2/organizations/show.json.rabl
katello-4.7.6 app/views/katello/api/v2/organizations/show.json.rabl
katello-4.8.2 app/views/katello/api/v2/organizations/show.json.rabl
katello-4.9.0.rc2 app/views/katello/api/v2/organizations/show.json.rabl