class Fog::Vsphere::Compute::Interfacetypes
Attributes
Public Instance Methods
Source
# File lib/fog/vsphere/models/compute/interfacetypes.rb, line 9 def all(filters = {}) requires :servertype case servertype when Fog::Vsphere::Compute::Servertype load service.list_interface_types(filters.merge(datacenter: datacenter, servertype: servertype.id)) else raise 'interfacetypes should have a servertype' end end
Source
# File lib/fog/vsphere/models/compute/interfacetypes.rb, line 20 def get(id) requires :servertype requires :datacenter new service.get_interface_type id, servertype, datacenter rescue Fog::Vsphere::Compute::NotFound nil end