Sha256: 1af7aa7c88c339e2e471554a005902d62f0af0916a509658ef8b5ec6108ea274
Contents?: true
Size: 1.67 KB
Versions: 40
Compression:
Stored size: 1.67 KB
Contents
module Fog module Compute class AWS class Real require 'fog/aws/parsers/compute/create_internet_gateway' # Creates an InternetGateway # # ==== Parameters # (none) # # === Returns # * response<~Excon::Response>: # * body<~Hash>: # * 'requestId'<~String> - Id of request # * 'internetGateway'<~Array>: # * 'attachmentSet'<~Array>: A list of VPCs attached to the Internet gateway # * 'vpcId'<~String> - The ID of the VPC the Internet gateway is attached to. # * 'state'<~String> - The current state of the attachment. # * 'tagSet'<~Array>: Tags assigned to the resource. # * 'key'<~String> - Tag's key # * 'value'<~String> - Tag's value # # {Amazon API Reference}[http://docs.amazonwebservices.com/AWSEC2/latest/APIReference/ApiReference-ItemType-InternetGatewayAttachmentType.html] def create_internet_gateway() request({ 'Action' => 'CreateInternetGateway', :parser => Fog::Parsers::Compute::AWS::CreateInternetGateway.new }) end end class Mock def create_internet_gateway() self.data[:internet_gateways].push({ 'internetGatewayId' => Fog::AWS::Mock.request_id, 'attachmentSet' => {}, 'tagSet' => {} }) Excon::Response.new( :status => 200, :body => { 'requestId' => Fog::AWS::Mock.request_id, 'internetGatewaySet' => self.data[:internet_gateways] } ) end end end end end
Version data entries
40 entries across 40 versions & 11 rubygems