Class: ForemanPuppet::Api::V2::SmartClassParametersController
- Inherits:
-
PuppetLookupsCommonController
- Object
- Api::V2::BaseController
- PuppetLookupsCommonController
- ForemanPuppet::Api::V2::SmartClassParametersController
- Includes:
- Parameters::PuppetclassLookupKey
- Defined in:
- app/controllers/foreman_puppet/api/v2/smart_class_parameters_controller.rb
Instance Method Summary collapse
- #index ⇒ Object
-
#resource_class ⇒ Object
overwrite Api::BaseController.
- #show ⇒ Object
- #update ⇒ Object
Methods included from Parameters::PuppetclassLookupKey
#puppetclass_lookup_key_params
Methods inherited from PuppetLookupsCommonController
#cast_default_value, #cast_value, #create, #destroy, #find_smart_class_parameter, #find_smart_class_parameters, #return_if_smart_mismatch, #smart_class_parameters_resource_scope
Instance Method Details
#index ⇒ Object
28 29 |
# File 'app/controllers/foreman_puppet/api/v2/smart_class_parameters_controller.rb', line 28 def index end |
#resource_class ⇒ Object
overwrite Api::BaseController
69 70 71 |
# File 'app/controllers/foreman_puppet/api/v2/smart_class_parameters_controller.rb', line 69 def resource_class LookupKey end |
#show ⇒ Object
38 39 |
# File 'app/controllers/foreman_puppet/api/v2/smart_class_parameters_controller.rb', line 38 def show end |
#update ⇒ Object
62 63 64 65 66 |
# File 'app/controllers/foreman_puppet/api/v2/smart_class_parameters_controller.rb', line 62 def update # NOTE: User must manually set :override => true. It is not automatically updated if optional input validator fields are updated. @smart_class_parameter.update!(puppetclass_lookup_key_params) render 'foreman_puppet/api/v2/smart_class_parameters/show' end |