Class: Api::V2::ForemanDatacenter::DeviceInterfacesController
- Inherits:
-
BaseController
- Object
- V2::BaseController
- BaseController
- Api::V2::ForemanDatacenter::DeviceInterfacesController
show all
- Includes:
- ForemanDatacenter::Controller::Parameters::DeviceInterface
- Defined in:
- app/controllers/api/v2/foreman_datacenter/device_interfaces_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
38
39
40
41
|
# File 'app/controllers/api/v2/foreman_datacenter/device_interfaces_controller.rb', line 38
def create
@device_interface = ::ForemanDatacenter::DeviceInterface.new(device_interface_params)
@device_interface.save
end
|
#destroy ⇒ Object
54
55
56
|
# File 'app/controllers/api/v2/foreman_datacenter/device_interfaces_controller.rb', line 54
def destroy
process_response @device_interface.destroy
end
|
#index ⇒ Object
13
14
15
|
# File 'app/controllers/api/v2/foreman_datacenter/device_interfaces_controller.rb', line 13
def index
@device_interfaces = resource_scope_for_index
end
|
#show ⇒ Object
20
21
|
# File 'app/controllers/api/v2/foreman_datacenter/device_interfaces_controller.rb', line 20
def show
end
|
#update ⇒ Object
47
48
49
|
# File 'app/controllers/api/v2/foreman_datacenter/device_interfaces_controller.rb', line 47
def update
process_response @device_interface.update(device_interface_params)
end
|