lib/vcloud/core/independent_disk.rb
def attached_vms
        body = Vcloud::Core::Fog::ServiceInterface.new.get_vms_disk_attached_to(id)
        vms = body.fetch(:VmReference)
        vms.map do |vm|
          id = vm.fetch(:href).split('/').last
          parent_vapp = Vcloud::Core::Vapp.get_by_child_vm_id(id)
          Vcloud::Core::Vm.new(id, parent_vapp)
        end
      end
# Return an array of Vcloud::Core::Vm objects which are attached to
# independent disk
#
# @return [Array] an array of Vcloud::Core::Vm
Return an array of Vcloud::Core::Vm objects which are attached to
independent disk
Return an array of Vcloud :: Core :: Vm objects which are attached to independent disk
def attached_vms
        body = Vcloud::Core::Fog::ServiceInterface.new.get_vms_disk_attached_to(id)
        vms = body.fetch(:VmReference)
        vms.map do |vm|
          id = vm.fetch(:href).split('/').last
          parent_vapp = Vcloud::Core::Vapp.get_by_child_vm_id(id)
          Vcloud::Core::Vm.new(id, parent_vapp)
        end
      end
def attached_vms body = Vcloud :: Core :: Fog :: ServiceInterface . new . get_vms_disk_attached_to ( id ) vms = body . fetch ( :VmReference ) vms . map do | vm | id = vm . fetch ( :href ) . split ( '/' ) . last parent_vapp = Vcloud :: Core :: Vapp . get_by_child_vm_id ( id ) Vcloud :: Core :: Vm . new ( id , parent_vapp ) end end
Return an array of Vcloud::Core::Vm objects which are attached to
independent disk
Return an array of Vcloud :: Core :: Vm objects which are attached to independent disk
an array of Vcloud::Core::Vm
an array of Vcloud :: Core :: Vm
Array