code: public ClusterRuleInfo[] findRulesForVm(VirtualMachine vm) throws RuntimeFault, RemoteException {
          return getVimService().findRulesForVm(getMOR(), vm.getMOR());
      }
docs: Finds all enabled and disabled VM-VM Affinity and Anti-Affinity rules, involving the given Virtual Machine.
  
  @param vm The vm whose rules need to be looked up.
  @return Array of rule info
  @throws RuntimeFault
  @throws RemoteException
  @since 6.0