Sha256: 97894c1198c1896c4a9dc0bf2f216f67d1a83dc431bdcc445b04ec0f2ac7086d

Contents?: true

Size: 529 Bytes

Versions: 4

Compression:

Stored size: 529 Bytes

Contents

module Fog
  module Compute
    class HuaweiCloud
      class Real
        # === Parameters
        # * server_id <~String>
        # * port_id <~String>
        def delete_os_interface(server_id, port_id)
          request(
            :expects => [200, 202,204],
            :method  => 'DELETE',
            :path    => "servers/#{server_id}/os-interface/#{port_id}"
          )
        end
      end

      class Mock
        def delete_os_interface(server_id, port_id)
          true
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fog-huaweicloud-0.0.3 lib/fog/compute/huaweicloud/requests/delete_os_interface.rb
fog-huaweicloud-0.0.2 lib/fog/compute/huaweicloud/requests/delete_os_interface.rb
fog-huaweicloud-0.1.3 lib/fog/compute/huaweicloud/requests/delete_os_interface.rb
fog-huaweicloud-0.1.2 lib/fog/compute/huaweicloud/requests/delete_os_interface.rb