Sha256: 35d7f8edb61937637ce45dbd1df8487cc46b0b1f1c018f3a2b178b77438cf0b0

Contents?: true

Size: 649 Bytes

Versions: 20

Compression:

Stored size: 649 Bytes

Contents

require 'fog/openstack/models/collection'
require 'fog/openstack/compute/models/os_interface'

module Fog
  module OpenStack
    class Compute
      class OsInterfaces < Fog::OpenStack::Collection
        model Fog::OpenStack::Compute::OsInterface

        attribute :server

        def all
          requires :server

          data = service.list_os_interfaces(server.id)
          load_response(data, 'interfaceAttachments')
        end

        def get(port_id)
          requires :server

          data = service.get_os_interface(server.id,port_id)
          load_response(data, 'interfaceAttachment')
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 3 rubygems

Version Path
fog-openstack-1.1.3 lib/fog/openstack/compute/models/os_interfaces.rb
fog-openstack-1.1.2 lib/fog/openstack/compute/models/os_interfaces.rb
fog-openstack-fork-99 lib/fog/openstack/compute/models/os_interfaces.rb
fog-openstack-1.1.0 lib/fog/openstack/compute/models/os_interfaces.rb
fog-openstack-1.1.0.pre lib/fog/openstack/compute/models/os_interfaces.rb
fog-openstack-apibank-1.0.102 lib/fog/openstack/compute/models/os_interfaces.rb
fog-openstack-1.0.11 lib/fog/openstack/compute/models/os_interfaces.rb
fog-openstack-apibank-1.0.101 lib/fog/openstack/compute/models/os_interfaces.rb
fog-openstack-1.0.10 lib/fog/openstack/compute/models/os_interfaces.rb
fog-openstack-1.0.9 lib/fog/openstack/compute/models/os_interfaces.rb
fog-openstack-1.0.8 lib/fog/openstack/compute/models/os_interfaces.rb
fog-openstack-1.0.7 lib/fog/openstack/compute/models/os_interfaces.rb
fog-openstack-1.0.6 lib/fog/openstack/compute/models/os_interfaces.rb
fog-openstack-1.0.5 lib/fog/openstack/compute/models/os_interfaces.rb
fog-openstack-1.0.4 lib/fog/openstack/compute/models/os_interfaces.rb
fog-openstack-1.0.3 lib/fog/openstack/compute/models/os_interfaces.rb
fog-openstack-1.0.2 lib/fog/openstack/compute/models/os_interfaces.rb
fog-openstack-1.0.1 lib/fog/openstack/compute/models/os_interfaces.rb
fog-openstack-1.0.0 lib/fog/openstack/compute/models/os_interfaces.rb
fog-openstack-0.3.1 lib/fog/openstack/compute/models/os_interfaces.rb