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-rackspace-0.1.6 lib/fog/rackspace/requests/networking_v2/create_port.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-rackspace-0.1.5/lib/fog/rackspace/requests/networking_v2/create_port.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-rackspace-0.1.5/lib/fog/rackspace/requests/networking_v2/create_port.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-rackspace-0.1.5/lib/fog/rackspace/requests/networking_v2/create_port.rb
fog-rackspace-0.1.5 lib/fog/rackspace/requests/networking_v2/create_port.rb
fog-rackspace-0.1.4 lib/fog/rackspace/requests/networking_v2/create_port.rb
fog-rackspace-0.1.3 lib/fog/rackspace/requests/networking_v2/create_port.rb
fog-rackspace-0.1.2 lib/fog/rackspace/requests/networking_v2/create_port.rb
fog-rackspace-0.1.1 lib/fog/rackspace/requests/networking_v2/create_port.rb
fog-rackspace-0.1.0 lib/fog/rackspace/requests/networking_v2/create_port.rb
fog-1.37.0 lib/fog/rackspace/requests/networking_v2/create_port.rb
fog-1.36.0 lib/fog/rackspace/requests/networking_v2/create_port.rb
fog-1.35.0 lib/fog/rackspace/requests/networking_v2/create_port.rb
fog-2.0.0.pre.0 lib/fog/rackspace/requests/networking_v2/create_port.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/lib/fog/rackspace/requests/networking_v2/create_port.rb
fog-1.34.0 lib/fog/rackspace/requests/networking_v2/create_port.rb
fog-1.33.0 lib/fog/rackspace/requests/networking_v2/create_port.rb
fog-1.32.0 lib/fog/rackspace/requests/networking_v2/create_port.rb
fog-1.31.0 lib/fog/rackspace/requests/networking_v2/create_port.rb
fog-1.30.0 lib/fog/rackspace/requests/networking_v2/create_port.rb