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