Sha256: 3a79e55c08906901703579b5c263588dc12c846d2f96d813eb34cba0fbcfecd6
Contents?: true
Size: 597 Bytes
Versions: 45
Compression:
Stored size: 597 Bytes
Contents
module Fog module Compute class Vsphere class Servertypes < Fog::Collection autoload :Servertype, File.expand_path('../servertype', __FILE__) model Fog::Compute::Vsphere::Servertype attr_accessor :datacenter, :id, :fullname def all(filters = { }) load service.list_server_types(filters.merge({:datacenter => datacenter})) end def get(id) requires :datacenter new service.get_server_type(id, datacenter) rescue Fog::Compute::Vsphere::NotFound nil end end end end end
Version data entries
45 entries across 45 versions & 1 rubygems