class Fog::AWS::Compute::NetworkInterface
Public Instance Methods
destroy()
click to toggle source
save()
click to toggle source
Create a network_interface
>> g = AWS.network_interfaces.new(:subnet_id => "subnet-someId", options) >> g.save
options is an optional hash which may contain 'PrivateIpAddress', 'Description', 'GroupSet'
Returns:¶ ↑
requestId and a networkInterface object
# File lib/fog/aws/models/compute/network_interface.rb, line 55 def save requires :subnet_id options = { 'PrivateIpAddress' => private_ip_address, 'Description' => description, 'GroupSet' => group_set, } options.delete_if {|key, value| value.nil?} data = service.create_network_interface(subnet_id, options).body['networkInterface'] new_attributes = data.reject {|key,value| key == 'requestId'} merge_attributes(new_attributes) true end