class Fog::Network::SakuraCloud::Interfaces
Public Instance Methods
all()
click to toggle source
# File lib/fog/sakuracloud/models/network/interfaces.rb, line 10 def all load service.list_interfaces.body['Interfaces'] end
connect_to_switch(id, switch_id)
click to toggle source
# File lib/fog/sakuracloud/models/network/interfaces.rb, line 25 def connect_to_switch(id, switch_id) id = service.connect_interface_to_switch(id, switch_id) get(id) end
delete(id)
click to toggle source
# File lib/fog/sakuracloud/models/network/interfaces.rb, line 30 def delete(id) service.delete_interface(id) true end
get(id)
click to toggle source
# File lib/fog/sakuracloud/models/network/interfaces.rb, line 14 def get(id) all.find { |f| f.id == id } rescue Fog::Errors::NotFound nil end
regist_onto_server(server_id)
click to toggle source
# File lib/fog/sakuracloud/models/network/interfaces.rb, line 20 def regist_onto_server(server_id) id = service.regist_interface_to_server(server_id) get(id) end