public void ReconfigureDVPortgroup(DVPortgroupConfigSpec spec)
 {
     try
     {
         VersionUtils.RequiresVersion(this.Client, VimVersion.Vim4);
         ManagedObjectReference taskReference = this.ReconfigureDVPortgroup_Task(spec);
         this.Client.WaitForTask(taskReference);
     }
     catch (FaultException ex)
     {
         throw FaultUtility.HandleFault(ex);
     }
 }
Example #2
0
        public ManagedObjectReference CreateDVPortgroup(DVPortgroupConfigSpec spec)
        {
            ManagedObjectReference result;

            try
            {
                VersionUtils.RequiresVersion(this.Client, VimVersion.Vim51);
                ManagedObjectReference taskReference = this.CreateDVPortgroup_Task(spec);
                result = (ManagedObjectReference)this.Client.WaitForTask(taskReference);
            }
            catch (FaultException ex)
            {
                throw FaultUtility.HandleFault(ex);
            }
            return(result);
        }
        public ManagedObjectReference ReconfigureDVPortgroup_Task(DVPortgroupConfigSpec spec)
        {
            ManagedObjectReference result;

            try
            {
                VersionUtils.RequiresVersion(this.Client, VimVersion.Vim4);
                ReconfigureDVPortgroupRequestType reconfigureDVPortgroupRequestType = new ReconfigureDVPortgroupRequestType();
                reconfigureDVPortgroupRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef);
                reconfigureDVPortgroupRequestType.spec  = (VimApi_65.DVPortgroupConfigSpec)VIConvert.ToWsdlType(spec);
                result = (ManagedObjectReference)VIConvert.ToVim(this.VimServiceProxy.ReconfigureDVPortgroup_Task(new ReconfigureDVPortgroup_TaskRequest(reconfigureDVPortgroupRequestType)).ReconfigureDVPortgroup_TaskResponse.returnval);
            }
            catch (FaultException ex)
            {
                throw FaultUtility.HandleFault(ex);
            }
            return(result);
        }