object @resource extends 'katello/api/v2/common/org_reference' extends 'katello/api/v2/common/timestamps' attributes :content_type attributes :docker_upstream_name attributes :mirror_on_sync, :verify_ssl_on_sync attributes :unprotected, :full_path, :checksum_type, :container_repository_name attributes :download_policy attributes :url, :relative_path extends 'katello/api/v2/repositories/base' attributes :gpg_key_id attributes :ssl_ca_cert_id attributes :ssl_client_cert_id attributes :ssl_client_key_id attributes :content_view_version_id, :library_instance_id attributes :product_type attributes :promoted? => :promoted attributes :ostree_branch_names => :ostree_branches attributes :upstream_username attributes :ostree_upstream_sync_policy, :ostree_upstream_sync_depth, :compute_ostree_upstream_sync_depth => :computed_ostree_upstream_sync_depth attributes :deb_releases, :deb_components, :deb_architectures attributes :ignore_global_proxy attributes :ignorable_content if @resource.is_a?(Katello::Repository) if @resource.distribution_version || @resource.distribution_arch || @resource.distribution_family || @resource.distribution_variant attributes :distribution_version attributes :distribution_arch attributes :distribution_bootable? => :distribution_bootable attributes :distribution_family attributes :distribution_variant end end node :permissions do |repo| { :deletable => repo.deletable? } end node(:gpg_key, :unless => lambda { |repository| repository.gpg_key.nil? }) do |repository| {:id => repository.gpg_key.id, :name => repository.gpg_key.name} end node(:ssl_ca_cert, :unless => lambda { |repository| repository.ssl_ca_cert.nil? }) do |repository| {:id => repository.ssl_ca_cert.id, :name => repository.ssl_ca_cert.name} end node(:ssl_client_cert, :unless => lambda { |repository| repository.ssl_client_cert.nil? }) do |repository| {:id => repository.ssl_client_cert.id, :name => repository.ssl_client_cert.name} end node(:ssl_client_key, :unless => lambda { |repository| repository.ssl_client_key.nil? }) do |repository| {:id => repository.ssl_client_key.id, :name => repository.ssl_client_key.name} end node :upstream_password_exists do |repo| repo.upstream_password.present? end if @object && @object.library_instance_id.nil? node :content_view_environments do |repository| Katello::RepositoryPresenter.new(repository).content_view_environments end end child :environment => :environment do |_repo| attribute :id end