Sha256: 99b41924cc4a418c7149e9fddc4241fa66740d7e3217ea953282e715b9a7ddef

Contents?: true

Size: 471 Bytes

Versions: 104

Compression:

Stored size: 471 Bytes

Contents

# frozen_string_literal: true

module ForemanAnsible
  module Api
    module V2
      # Extends the hosts api controller to support creating/updating with roles
      module HostsParamGroupExtensions
        extend Apipie::DSL::Concern

        update_api(:create, :update) do
          param :host, Hash do
            param :ansible_role_ids, Array,
                  :desc => N_('IDs of associated ansible roles')
          end
        end
      end
    end
  end
end

Version data entries

104 entries across 104 versions & 1 rubygems

Version Path
foreman_ansible-15.0.2 app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb
foreman_ansible-15.0.1 app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb
foreman_ansible-15.0.0 app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb
foreman_ansible-14.2.2 app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb
foreman_ansible-14.2.1 app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb
foreman_ansible-13.0.7 app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb
foreman_ansible-14.2.0 app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb
foreman_ansible-14.1.1 app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb
foreman_ansible-14.1.0 app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb
foreman_ansible-13.0.5 app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb
foreman_ansible-14.0.0 app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb
foreman_ansible-13.0.4 app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb
foreman_ansible-13.0.3 app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb
foreman_ansible-13.0.2 app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb
foreman_ansible-13.0.1 app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb
foreman_ansible-13.0.0 app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb
foreman_ansible-12.0.7 app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb
foreman_ansible-10.4.4 app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb
foreman_ansible-7.1.8 app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb
foreman_ansible-12.0.6 app/controllers/foreman_ansible/api/v2/hosts_param_group_extensions.rb