Sha256: 10db486815dd051b70bfd67cf67dc756c141adc41b29c6dca9edcfc1677ae4f1

Contents?: true

Size: 372 Bytes

Versions: 23

Compression:

Stored size: 372 Bytes

Contents

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

          request(
            :method  => 'PUT',
            :body    => Fog::JSON.encode(data),
            :path    => "ports/#{port.id}",
            :expects => 200
          )
        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/update_port.rb
fog-1.28.0 lib/fog/rackspace/requests/networking_v2/update_port.rb
fog-1.27.0 lib/fog/rackspace/requests/networking_v2/update_port.rb