Sha256: e44418ecf258b502f38bb01957c2ebd15c497ea86e00d8f5ae0dd3a7c1431356

Contents?: true

Size: 641 Bytes

Versions: 13

Compression:

Stored size: 641 Bytes

Contents

module Katello
  class Api::V2::SimpleContentAccessController < Api::V2::ApiController
    resource_description do
      description "Red Hat subscriptions management platform."
      api_version 'v2'
    end

    def render_sca_410_error
      render_error 'custom_error', status: :gone,
                                    locals: { message: N_('Simple Content Access is the only supported content access mode') }
    end

    def eligible
      render_sca_410_error
    end

    def status
      render_sca_410_error
    end

    def enable
      render_sca_410_error
    end

    def disable
      render_sca_410_error
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
katello-4.14.2 app/controllers/katello/api/v2/simple_content_access_controller.rb
katello-4.15.0 app/controllers/katello/api/v2/simple_content_access_controller.rb
katello-4.15.0.rc2 app/controllers/katello/api/v2/simple_content_access_controller.rb
katello-4.15.0.rc1 app/controllers/katello/api/v2/simple_content_access_controller.rb
katello-4.14.1 app/controllers/katello/api/v2/simple_content_access_controller.rb
katello-4.14.0 app/controllers/katello/api/v2/simple_content_access_controller.rb
katello-4.14.0.rc3 app/controllers/katello/api/v2/simple_content_access_controller.rb
katello-4.14.0.rc2 app/controllers/katello/api/v2/simple_content_access_controller.rb
katello-4.14.0.rc1.1 app/controllers/katello/api/v2/simple_content_access_controller.rb
katello-4.14.0.rc1 app/controllers/katello/api/v2/simple_content_access_controller.rb
katello-4.13.1 app/controllers/katello/api/v2/simple_content_access_controller.rb
katello-4.13.0 app/controllers/katello/api/v2/simple_content_access_controller.rb
katello-4.13.0.rc1 app/controllers/katello/api/v2/simple_content_access_controller.rb