Sha256: ba19331e28765ec6655c57e909e083013c71aeeb895cbd93d1823a910ec288d8
Contents?: true
Size: 732 Bytes
Versions: 5
Compression:
Stored size: 732 Bytes
Contents
require 'fog/core/collection' require 'fog/vsphere/models/compute/interface' module Fog module Compute class Vsphere class Interfaces < Fog::Collection model Fog::Compute::Vsphere::Interface attr_accessor :vm def all(filters = {}) requires :vm case vm when Fog::Compute::Vsphere::Server load connection.list_vm_interfaces(vm.id) when Fog::Compute::Vsphere::Template load connection.list_template_interfaces(vm.id) else raise 'interfaces should have vm or template' end end def get(id) new connection.get_interface(id) end end end end end
Version data entries
5 entries across 5 versions & 4 rubygems