# File lib/fog/aws/requests/compute/move_address_to_vpc.rb, line 27 def move_address_to_vpc(public_ip) response = Excon::Response.new allocation_id = "eip-#{Fog::Mock.random_hex(8)}" address = self.data[:addresses][public_ip] if address address['domain'] = 'vpc' address['allocationId'] = allocation_id response.status = 200 response.body = { 'requestId' => Fog::AWS::Mock.request_id, 'allocationId' => allocation_id, 'status' => "InVpc" } response else raise Fog::Compute::AWS::NotFound.new("Address does not exist") end end