public HostScsiDisk[] QueryAvailableDisksForVmfs(ManagedObjectReference datastore) { HostScsiDisk[] result; try { QueryAvailableDisksForVmfsRequestType queryAvailableDisksForVmfsRequestType = new QueryAvailableDisksForVmfsRequestType(); queryAvailableDisksForVmfsRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); queryAvailableDisksForVmfsRequestType.datastore = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(datastore); result = (HostScsiDisk[])VIConvert.ToVim(this.VimServiceProxy.QueryAvailableDisksForVmfs(new QueryAvailableDisksForVmfsRequest(queryAvailableDisksForVmfsRequestType)).QueryAvailableDisksForVmfsResponse1); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public TaskInfo[] ReadPreviousTasks(int maxCount) { TaskInfo[] result; try { ReadPreviousTasksRequestType readPreviousTasksRequestType = new ReadPreviousTasksRequestType(); readPreviousTasksRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); readPreviousTasksRequestType.maxCount = maxCount; result = (TaskInfo[])VIConvert.ToVim(this.VimServiceProxy.ReadPreviousTasks(new ReadPreviousTasksRequest(readPreviousTasksRequestType)).ReadPreviousTasksResponse1); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public ServiceContent RetrieveServiceContent() { ServiceContent result; try { RetrieveServiceContentRequestType retrieveServiceContentRequestType = new RetrieveServiceContentRequestType(); retrieveServiceContentRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); result = (ServiceContent)VIConvert.ToVim(this.VimServiceProxy.RetrieveServiceContent(new RetrieveServiceContentRequest(retrieveServiceContentRequestType)).RetrieveServiceContentResponse.returnval); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public HostUnresolvedVmfsVolume[] QueryUnresolvedVmfsVolumes() { HostUnresolvedVmfsVolume[] result; try { VersionUtils.RequiresVersion(this.Client, VimVersion.Vim4); QueryUnresolvedVmfsVolumesRequestType queryUnresolvedVmfsVolumesRequestType = new QueryUnresolvedVmfsVolumesRequestType(); queryUnresolvedVmfsVolumesRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); result = (HostUnresolvedVmfsVolume[])VIConvert.ToVim(this.VimServiceProxy.QueryUnresolvedVmfsVolumes(new QueryUnresolvedVmfsVolumesRequest(queryUnresolvedVmfsVolumesRequestType)).QueryUnresolvedVmfsVolumesResponse1); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public ManagedObjectReference MoveIntoFolder_Task(ManagedObjectReference[] list) { ManagedObjectReference result; try { MoveIntoFolderRequestType moveIntoFolderRequestType = new MoveIntoFolderRequestType(); moveIntoFolderRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); moveIntoFolderRequestType.list = (VimApi_65.ManagedObjectReference[])VIConvert.ToWsdlType(list); result = (ManagedObjectReference)VIConvert.ToVim(this.VimServiceProxy.MoveIntoFolder_Task(new MoveIntoFolder_TaskRequest(moveIntoFolderRequestType)).MoveIntoFolder_TaskResponse.returnval); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public Permission[] RetrieveEntityPermissions(ManagedObjectReference entity, bool inherited) { Permission[] result; try { RetrieveEntityPermissionsRequestType retrieveEntityPermissionsRequestType = new RetrieveEntityPermissionsRequestType(); retrieveEntityPermissionsRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); retrieveEntityPermissionsRequestType.entity = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(entity); retrieveEntityPermissionsRequestType.inherited = inherited; result = (Permission[])VIConvert.ToVim(this.VimServiceProxy.RetrieveEntityPermissions(new RetrieveEntityPermissionsRequest(retrieveEntityPermissionsRequestType)).RetrieveEntityPermissionsResponse1); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public ManagedObjectReference PowerUpHostFromStandBy_Task(int timeoutSec) { ManagedObjectReference result; try { PowerUpHostFromStandByRequestType powerUpHostFromStandByRequestType = new PowerUpHostFromStandByRequestType(); powerUpHostFromStandByRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); powerUpHostFromStandByRequestType.timeoutSec = timeoutSec; result = (ManagedObjectReference)VIConvert.ToVim(this.VimServiceProxy.PowerUpHostFromStandBy_Task(new PowerUpHostFromStandBy_TaskRequest(powerUpHostFromStandByRequestType)).PowerUpHostFromStandBy_TaskResponse.returnval); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public ManagedObjectReference ExitMaintenanceMode_Task(int timeout) { ManagedObjectReference result; try { ExitMaintenanceModeRequestType exitMaintenanceModeRequestType = new ExitMaintenanceModeRequestType(); exitMaintenanceModeRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); exitMaintenanceModeRequestType.timeout = timeout; result = (ManagedObjectReference)VIConvert.ToVim(this.VimServiceProxy.ExitMaintenanceMode_Task(new ExitMaintenanceMode_TaskRequest(exitMaintenanceModeRequestType)).ExitMaintenanceMode_TaskResponse.returnval); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public ManagedObjectReference CreateListViewFromView(ManagedObjectReference view) { ManagedObjectReference result; try { CreateListViewFromViewRequestType createListViewFromViewRequestType = new CreateListViewFromViewRequestType(); createListViewFromViewRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); createListViewFromViewRequestType.view = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(view); result = (ManagedObjectReference)VIConvert.ToVim(this.VimServiceProxy.CreateListViewFromView(new CreateListViewFromViewRequest(createListViewFromViewRequestType)).CreateListViewFromViewResponse.returnval); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public ManagedObjectReference[] ModifyListView(ManagedObjectReference[] add, ManagedObjectReference[] remove) { ManagedObjectReference[] result; try { ModifyListViewRequestType modifyListViewRequestType = new ModifyListViewRequestType(); modifyListViewRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); modifyListViewRequestType.add = (VimApi_65.ManagedObjectReference[])VIConvert.ToWsdlType(add); modifyListViewRequestType.remove = (VimApi_65.ManagedObjectReference[])VIConvert.ToWsdlType(remove); result = (ManagedObjectReference[])VIConvert.ToVim(this.VimServiceProxy.ModifyListView(new ModifyListViewRequest(modifyListViewRequestType)).ModifyListViewResponse1); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public PerfProviderSummary QueryPerfProviderSummary(ManagedObjectReference entity) { PerfProviderSummary result; try { QueryPerfProviderSummaryRequestType queryPerfProviderSummaryRequestType = new QueryPerfProviderSummaryRequestType(); queryPerfProviderSummaryRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); queryPerfProviderSummaryRequestType.entity = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(entity); result = (PerfProviderSummary)VIConvert.ToVim(this.VimServiceProxy.QueryPerfProviderSummary(new QueryPerfProviderSummaryRequest(queryPerfProviderSummaryRequestType)).QueryPerfProviderSummaryResponse.returnval); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public PerfCompositeMetric QueryPerfComposite(PerfQuerySpec querySpec) { PerfCompositeMetric result; try { QueryPerfCompositeRequestType queryPerfCompositeRequestType = new QueryPerfCompositeRequestType(); queryPerfCompositeRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); queryPerfCompositeRequestType.querySpec = (VimApi_65.PerfQuerySpec)VIConvert.ToWsdlType(querySpec); result = (PerfCompositeMetric)VIConvert.ToVim(this.VimServiceProxy.QueryPerfComposite(new QueryPerfCompositeRequest(queryPerfCompositeRequestType)).QueryPerfCompositeResponse.returnval); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public UpdateSet WaitForUpdates(string version) { UpdateSet result; try { WaitForUpdatesRequestType waitForUpdatesRequestType = new WaitForUpdatesRequestType(); waitForUpdatesRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); waitForUpdatesRequestType.version = version; result = (UpdateSet)VIConvert.ToVim(this.VimServiceProxy.WaitForUpdates(new WaitForUpdatesRequest(waitForUpdatesRequestType)).WaitForUpdatesResponse.returnval); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public ManagedObjectReference CreatePropertyCollector() { ManagedObjectReference result; try { VersionUtils.RequiresVersion(this.Client, VimVersion.Vim41); CreatePropertyCollectorRequestType createPropertyCollectorRequestType = new CreatePropertyCollectorRequestType(); createPropertyCollectorRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); result = (ManagedObjectReference)VIConvert.ToVim(this.VimServiceProxy.CreatePropertyCollector(new CreatePropertyCollectorRequest(createPropertyCollectorRequestType)).CreatePropertyCollectorResponse.returnval); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public ManagedObjectReference[] RetrieveObjectScheduledTask(ManagedObjectReference obj) { ManagedObjectReference[] result; try { VersionUtils.RequiresVersion(this.Client, VimVersion.Vim4); RetrieveObjectScheduledTaskRequestType retrieveObjectScheduledTaskRequestType = new RetrieveObjectScheduledTaskRequestType(); retrieveObjectScheduledTaskRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); retrieveObjectScheduledTaskRequestType.obj = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(obj); result = (ManagedObjectReference[])VIConvert.ToVim(this.VimServiceProxy.RetrieveObjectScheduledTask(new RetrieveObjectScheduledTaskRequest(retrieveObjectScheduledTaskRequestType)).RetrieveObjectScheduledTaskResponse1); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public LicenseAssignmentManagerLicenseAssignment[] QueryAssignedLicenses(string entityId) { LicenseAssignmentManagerLicenseAssignment[] result; try { VersionUtils.RequiresVersion(this.Client, VimVersion.Vim4); QueryAssignedLicensesRequestType queryAssignedLicensesRequestType = new QueryAssignedLicensesRequestType(); queryAssignedLicensesRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); queryAssignedLicensesRequestType.entityId = entityId; result = (LicenseAssignmentManagerLicenseAssignment[])VIConvert.ToVim(this.VimServiceProxy.QueryAssignedLicenses(new QueryAssignedLicensesRequest(queryAssignedLicensesRequestType)).QueryAssignedLicensesResponse1); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public ResourceConfigOption QueryResourceConfigOption() { ResourceConfigOption result; try { VersionUtils.RequiresVersion(this.Client, VimVersion.Vim41); QueryResourceConfigOptionRequestType queryResourceConfigOptionRequestType = new QueryResourceConfigOptionRequestType(); queryResourceConfigOptionRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); result = (ResourceConfigOption)VIConvert.ToVim(this.VimServiceProxy.QueryResourceConfigOption(new QueryResourceConfigOptionRequest(queryResourceConfigOptionRequestType)).QueryResourceConfigOptionResponse.returnval); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public VsanHostDiskResult[] QueryDisksForVsan(string[] canonicalName) { VsanHostDiskResult[] result; try { VersionUtils.RequiresVersion(this.Client, VimVersion.Vim55); QueryDisksForVsanRequestType queryDisksForVsanRequestType = new QueryDisksForVsanRequestType(); queryDisksForVsanRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); queryDisksForVsanRequestType.canonicalName = canonicalName; result = (VsanHostDiskResult[])VIConvert.ToVim(this.VimServiceProxy.QueryDisksForVsan(new QueryDisksForVsanRequest(queryDisksForVsanRequestType)).QueryDisksForVsanResponse1); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public ConfigTarget QueryConfigTarget(ManagedObjectReference host) { ConfigTarget result; try { QueryConfigTargetRequestType queryConfigTargetRequestType = new QueryConfigTargetRequestType(); queryConfigTargetRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); queryConfigTargetRequestType.host = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(host); result = (ConfigTarget)VIConvert.ToVim(this.VimServiceProxy.QueryConfigTarget(new QueryConfigTargetRequest(queryConfigTargetRequestType)).QueryConfigTargetResponse.returnval); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public VsanHostClusterStatus QueryHostStatus() { VsanHostClusterStatus result; try { VersionUtils.RequiresVersion(this.Client, VimVersion.Vim55); QueryHostStatusRequestType queryHostStatusRequestType = new QueryHostStatusRequestType(); queryHostStatusRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); result = (VsanHostClusterStatus)VIConvert.ToVim(this.VimServiceProxy.QueryHostStatus(new QueryHostStatusRequest(queryHostStatusRequestType)).QueryHostStatusResponse.returnval); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public HostTpmAttestationReport QueryTpmAttestationReport() { HostTpmAttestationReport result; try { VersionUtils.RequiresVersion(this.Client, VimVersion.Vim51); QueryTpmAttestationReportRequestType queryTpmAttestationReportRequestType = new QueryTpmAttestationReportRequestType(); queryTpmAttestationReportRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); result = (HostTpmAttestationReport)VIConvert.ToVim(this.VimServiceProxy.QueryTpmAttestationReport(new QueryTpmAttestationReportRequest(queryTpmAttestationReportRequestType)).QueryTpmAttestationReportResponse.returnval); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public ManagedObjectReference RecommissionVsanNode_Task() { ManagedObjectReference result; try { VersionUtils.RequiresVersion(this.Client, VimVersion.Vim60); RecommissionVsanNodeRequestType recommissionVsanNodeRequestType = new RecommissionVsanNodeRequestType(); recommissionVsanNodeRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); result = (ManagedObjectReference)VIConvert.ToVim(this.VimServiceProxy.RecommissionVsanNode_Task(new RecommissionVsanNode_TaskRequest(recommissionVsanNodeRequestType)).RecommissionVsanNode_TaskResponse.returnval); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public ManagedObjectReference ShutdownHost_Task(bool force) { ManagedObjectReference result; try { ShutdownHostRequestType shutdownHostRequestType = new ShutdownHostRequestType(); shutdownHostRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); shutdownHostRequestType.force = force; result = (ManagedObjectReference)VIConvert.ToVim(this.VimServiceProxy.ShutdownHost_Task(new ShutdownHost_TaskRequest(shutdownHostRequestType)).ShutdownHost_TaskResponse.returnval); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public ID[] ListVStorageObject(ManagedObjectReference datastore) { ID[] result; try { VersionUtils.RequiresVersion(this.Client, VimVersion.Vim65); ListVStorageObjectRequestType listVStorageObjectRequestType = new ListVStorageObjectRequestType(); listVStorageObjectRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); listVStorageObjectRequestType.datastore = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(datastore); result = (ID[])VIConvert.ToVim(this.VimServiceProxy.ListVStorageObject(new ListVStorageObjectRequest(listVStorageObjectRequestType)).ListVStorageObjectResponse1); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public ManagedObjectReference unregisterVApp_Task() { ManagedObjectReference result; try { VersionUtils.RequiresVersion(this.Client, VimVersion.Vim4); unregisterVAppRequestType unregisterVAppRequestType = new unregisterVAppRequestType(); unregisterVAppRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); result = (ManagedObjectReference)VIConvert.ToVim(this.VimServiceProxy.unregisterVApp_Task(new unregisterVApp_TaskRequest(unregisterVAppRequestType)).unregisterVApp_TaskResponse.returnval); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public VslmTagEntry[] ListTagsAttachedToVStorageObject(ID id) { VslmTagEntry[] result; try { VersionUtils.RequiresVersion(this.Client, VimVersion.Vim65); ListTagsAttachedToVStorageObjectRequestType listTagsAttachedToVStorageObjectRequestType = new ListTagsAttachedToVStorageObjectRequestType(); listTagsAttachedToVStorageObjectRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); listTagsAttachedToVStorageObjectRequestType.id = (VimApi_65.ID)VIConvert.ToWsdlType(id); result = (VslmTagEntry[])VIConvert.ToVim(this.VimServiceProxy.ListTagsAttachedToVStorageObject(new ListTagsAttachedToVStorageObjectRequest(listTagsAttachedToVStorageObjectRequestType)).ListTagsAttachedToVStorageObjectResponse1); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public ManagedObjectReference CreateFolder(string name) { ManagedObjectReference result; try { CreateFolderRequestType createFolderRequestType = new CreateFolderRequestType(); createFolderRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); createFolderRequestType.name = name; result = (ManagedObjectReference)VIConvert.ToVim(this.VimServiceProxy.CreateFolder(new CreateFolderRequest(createFolderRequestType)).CreateFolderResponse.returnval); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public HostVsanInternalSystemVsanPhysicalDiskDiagnosticsResult[] RunVsanPhysicalDiskDiagnostics(string[] disks) { HostVsanInternalSystemVsanPhysicalDiskDiagnosticsResult[] result; try { VersionUtils.RequiresVersion(this.Client, VimVersion.Vim60); RunVsanPhysicalDiskDiagnosticsRequestType runVsanPhysicalDiskDiagnosticsRequestType = new RunVsanPhysicalDiskDiagnosticsRequestType(); runVsanPhysicalDiskDiagnosticsRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); runVsanPhysicalDiskDiagnosticsRequestType.disks = disks; result = (HostVsanInternalSystemVsanPhysicalDiskDiagnosticsResult[])VIConvert.ToVim(this.VimServiceProxy.RunVsanPhysicalDiskDiagnostics(new RunVsanPhysicalDiskDiagnosticsRequest(runVsanPhysicalDiskDiagnosticsRequestType)).RunVsanPhysicalDiskDiagnosticsResponse1); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public IpPool[] QueryIpPools(ManagedObjectReference dc) { IpPool[] result; try { VersionUtils.RequiresVersion(this.Client, VimVersion.Vim4); QueryIpPoolsRequestType queryIpPoolsRequestType = new QueryIpPoolsRequestType(); queryIpPoolsRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); queryIpPoolsRequestType.dc = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(dc); result = (IpPool[])VIConvert.ToVim(this.VimServiceProxy.QueryIpPools(new QueryIpPoolsRequest(queryIpPoolsRequestType)).QueryIpPoolsResponse1); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }
public ManagedObjectReference DatastoreExitMaintenanceMode_Task() { ManagedObjectReference result; try { VersionUtils.RequiresVersion(this.Client, VimVersion.Vim50); DatastoreExitMaintenanceModeRequestType datastoreExitMaintenanceModeRequestType = new DatastoreExitMaintenanceModeRequestType(); datastoreExitMaintenanceModeRequestType._this = (VimApi_65.ManagedObjectReference)VIConvert.ToWsdlType(this.MoRef); result = (ManagedObjectReference)VIConvert.ToVim(this.VimServiceProxy.DatastoreExitMaintenanceMode_Task(new DatastoreExitMaintenanceMode_TaskRequest(datastoreExitMaintenanceModeRequestType)).DatastoreExitMaintenanceMode_TaskResponse.returnval); } catch (FaultException ex) { throw FaultUtility.HandleFault(ex); } return(result); }