Sha256: e782dd26a59fb2af5abeea0454a123960946f682ac5db03221a90fccb0f43de0

Contents?: true

Size: 357 Bytes

Versions: 23

Compression:

Stored size: 357 Bytes

Contents

module Fog
  module Rackspace
    class NetworkingV2
      class Real
        def create_port(port)
          data = {:port => port.attributes}

          request(
            :method  => 'POST',
            :body    => Fog::JSON.encode(data),
            :path    => "ports",
            :expects => 201
          )
        end
      end
    end
  end
end

Version data entries

23 entries across 21 versions & 4 rubygems

Version Path
fog-1.29.0 lib/fog/rackspace/requests/networking_v2/create_port.rb
fog-1.28.0 lib/fog/rackspace/requests/networking_v2/create_port.rb
fog-1.27.0 lib/fog/rackspace/requests/networking_v2/create_port.rb