Class: Api::V2::ForemanDatacenter::ConsoleServerPortTemplatesController
- Inherits:
-
BaseController
- Object
- V2::BaseController
- BaseController
- Api::V2::ForemanDatacenter::ConsoleServerPortTemplatesController
show all
- Includes:
- ForemanDatacenter::Controller::Parameters::ConsoleServerPortTemplate
- Defined in:
- app/controllers/api/v2/foreman_datacenter/console_server_port_templates_controller.rb
Instance Method Summary
collapse
#action_permission, #controller_permission, #find_resource, #resource_class, #resource_class_for, #resource_finder, #resource_name, #resource_scope, #scope_for
Instance Method Details
#create ⇒ Object
33
34
35
36
|
# File 'app/controllers/api/v2/foreman_datacenter/console_server_port_templates_controller.rb', line 33
def create
@console_server_port_template = ::ForemanDatacenter::ConsoleServerPortTemplate.new(console_server_port_template_params)
process_response @console_server_port_template.save
end
|
#destroy ⇒ Object
41
42
43
|
# File 'app/controllers/api/v2/foreman_datacenter/console_server_port_templates_controller.rb', line 41
def destroy
process_response @console_server_port_template.destroy
end
|
#index ⇒ Object
13
14
15
|
# File 'app/controllers/api/v2/foreman_datacenter/console_server_port_templates_controller.rb', line 13
def index
@console_server_port_templates = resource_scope_for_index
end
|
#show ⇒ Object
20
21
|
# File 'app/controllers/api/v2/foreman_datacenter/console_server_port_templates_controller.rb', line 20
def show
end
|