class Fog::Compute::Terremark::Vdcs
Public Instance Methods
all()
click to toggle source
# File lib/fog/compute/terremark/models/vdcs.rb, line 7 def all data = service.get_organization(organization_id).body["Links"].select do |entity| entity["type"] == "application/vnd.vmware.vcloud.vdc+xml" end load(data) end
get(vdc_id)
click to toggle source
# File lib/fog/compute/terremark/models/vdcs.rb, line 14 def get(vdc_id) if vdc_id && vdc = service.get_vdc(vdc_id).body new(vdc) elsif !vdc_id nil end rescue Excon::Errors::Forbidden nil end
organization_id()
click to toggle source
# File lib/fog/compute/terremark/models/vdcs.rb, line 24 def organization_id @organization_id ||= service.default_organization_id end
Private Instance Methods
organization_id=(new_organization_id)
click to toggle source
# File lib/fog/compute/terremark/models/vdcs.rb, line 30 def organization_id=(new_organization_id) @organization_id = new_organization_id end