Sha256: b5eed507896117585528a84a4ca5b27c3230fffbea5cc687ed0fe9483fd7de21

Contents?: true

Size: 821 Bytes

Versions: 66

Compression:

Stored size: 821 Bytes

Contents

module Katello
  module Concerns
    module Api::V2::SmartProxiesControllerExtensions
      module ApiPieExtensions
        extend ::Apipie::DSL::Concern

        update_api(:create, :update) do
          param :smart_proxy, Hash do
            param :download_policy, String, :required => false, :desc => N_('Download Policy of the capsule, must be one of %s') %
                SmartProxy::DOWNLOAD_POLICIES.join(', ')
          end
        end
      end

      extend ActiveSupport::Concern

      included do
        include ApiPieExtensions

        def create
          @smart_proxy = SmartProxy.new(smart_proxy_params)
          process_response @smart_proxy.save
        end

        def update
          process_response @smart_proxy.update_attributes(smart_proxy_params)
        end
      end
    end
  end
end

Version data entries

66 entries across 66 versions & 1 rubygems

Version Path
katello-3.9.1 app/controllers/katello/concerns/api/v2/smart_proxies_controller_extensions.rb
katello-3.10.0.rc1 app/controllers/katello/concerns/api/v2/smart_proxies_controller_extensions.rb
katello-3.9.0 app/controllers/katello/concerns/api/v2/smart_proxies_controller_extensions.rb
katello-3.8.1 app/controllers/katello/concerns/api/v2/smart_proxies_controller_extensions.rb
katello-3.9.0.rc2 app/controllers/katello/concerns/api/v2/smart_proxies_controller_extensions.rb
katello-3.9.0.rc1 app/controllers/katello/concerns/api/v2/smart_proxies_controller_extensions.rb
katello-3.7.1.1 app/controllers/katello/concerns/api/v2/smart_proxies_controller_extensions.rb
katello-3.7.1 app/controllers/katello/concerns/api/v2/smart_proxies_controller_extensions.rb
katello-3.8.0 app/controllers/katello/concerns/api/v2/smart_proxies_controller_extensions.rb
katello-3.8.0.rc3 app/controllers/katello/concerns/api/v2/smart_proxies_controller_extensions.rb
katello-3.8.0.rc2 app/controllers/katello/concerns/api/v2/smart_proxies_controller_extensions.rb
katello-3.7.0 app/controllers/katello/concerns/api/v2/smart_proxies_controller_extensions.rb
katello-3.8.0.rc1 app/controllers/katello/concerns/api/v2/smart_proxies_controller_extensions.rb
katello-3.7.0.rc2 app/controllers/katello/concerns/api/v2/smart_proxies_controller_extensions.rb
katello-3.7.0.rc1 app/controllers/katello/concerns/api/v2/smart_proxies_controller_extensions.rb
katello-3.5.2 app/controllers/katello/concerns/api/v2/smart_proxies_controller_extensions.rb
katello-3.6.0 app/controllers/katello/concerns/api/v2/smart_proxies_controller_extensions.rb
katello-3.6.0.1.rc2 app/controllers/katello/concerns/api/v2/smart_proxies_controller_extensions.rb
katello-3.6.0.rc2 app/controllers/katello/concerns/api/v2/smart_proxies_controller_extensions.rb
katello-3.6.0.rc1 app/controllers/katello/concerns/api/v2/smart_proxies_controller_extensions.rb