Sha256: 6f4bb87295e29835e8ac7c6fc3619f7a6bd4bb94b434339016db1a782a7001fc
Contents?: true
Size: 1.62 KB
Versions: 1
Compression:
Stored size: 1.62 KB
Contents
module Fog module Compute class AWS class Real require 'rackspace-fog/aws/parsers/compute/delete_internet_gateway' #Deletes an Internet gateway from your AWS account. The gateway must not be attached to a VPC # # ==== Parameters # * internet_gateway_id<~String> - The ID of the InternetGateway you want to delete. # # === Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'requestId'<~String> - Id of request # * 'return'<~Boolean> - Returns true if the request succeeds. # # {Amazon API Reference}[http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-query-DeleteInternetGateway.html] def delete_internet_gateway(internet_gateway_id) request( 'Action' => 'DeleteInternetGateway', 'InternetGatewayId' => internet_gateway_id, :parser => Fog::Parsers::Compute::AWS::DeleteInternetGateway.new ) end end class Mock def delete_internet_gateway(internet_gateway_id) Excon::Response.new.tap do |response| if internet_gateway_id response.status = 200 response.body = { 'requestId' => Fog::AWS::Mock.request_id, 'return' => true } else message = 'MissingParameter => ' message << 'The request must contain the parameter internet_gateway_id' raise Fog::Compute::AWS::Error.new(message) end end end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rackspace-fog-1.4.2 | lib/rackspace-fog/aws/requests/compute/delete_internet_gateway.rb |