mo.go 47 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802
  1. /*
  2. Copyright (c) 2014-2018 VMware, Inc. All Rights Reserved.
  3. Licensed under the Apache License, Version 2.0 (the "License");
  4. you may not use this file except in compliance with the License.
  5. You may obtain a copy of the License at
  6. http://www.apache.org/licenses/LICENSE-2.0
  7. Unless required by applicable law or agreed to in writing, software
  8. distributed under the License is distributed on an "AS IS" BASIS,
  9. WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  10. See the License for the specific language governing permissions and
  11. limitations under the License.
  12. */
  13. package mo
  14. import (
  15. "reflect"
  16. "time"
  17. "github.com/vmware/govmomi/vim25/types"
  18. )
  19. type Alarm struct {
  20. ExtensibleManagedObject
  21. Info types.AlarmInfo `mo:"info"`
  22. }
  23. func init() {
  24. t["Alarm"] = reflect.TypeOf((*Alarm)(nil)).Elem()
  25. }
  26. type AlarmManager struct {
  27. Self types.ManagedObjectReference
  28. DefaultExpression []types.BaseAlarmExpression `mo:"defaultExpression"`
  29. Description types.AlarmDescription `mo:"description"`
  30. }
  31. func (m AlarmManager) Reference() types.ManagedObjectReference {
  32. return m.Self
  33. }
  34. func init() {
  35. t["AlarmManager"] = reflect.TypeOf((*AlarmManager)(nil)).Elem()
  36. }
  37. type AuthorizationManager struct {
  38. Self types.ManagedObjectReference
  39. PrivilegeList []types.AuthorizationPrivilege `mo:"privilegeList"`
  40. RoleList []types.AuthorizationRole `mo:"roleList"`
  41. Description types.AuthorizationDescription `mo:"description"`
  42. }
  43. func (m AuthorizationManager) Reference() types.ManagedObjectReference {
  44. return m.Self
  45. }
  46. func init() {
  47. t["AuthorizationManager"] = reflect.TypeOf((*AuthorizationManager)(nil)).Elem()
  48. }
  49. type CertificateManager struct {
  50. Self types.ManagedObjectReference
  51. }
  52. func (m CertificateManager) Reference() types.ManagedObjectReference {
  53. return m.Self
  54. }
  55. func init() {
  56. t["CertificateManager"] = reflect.TypeOf((*CertificateManager)(nil)).Elem()
  57. }
  58. type ClusterComputeResource struct {
  59. ComputeResource
  60. Configuration types.ClusterConfigInfo `mo:"configuration"`
  61. Recommendation []types.ClusterRecommendation `mo:"recommendation"`
  62. DrsRecommendation []types.ClusterDrsRecommendation `mo:"drsRecommendation"`
  63. MigrationHistory []types.ClusterDrsMigration `mo:"migrationHistory"`
  64. ActionHistory []types.ClusterActionHistory `mo:"actionHistory"`
  65. DrsFault []types.ClusterDrsFaults `mo:"drsFault"`
  66. }
  67. func init() {
  68. t["ClusterComputeResource"] = reflect.TypeOf((*ClusterComputeResource)(nil)).Elem()
  69. }
  70. type ClusterEVCManager struct {
  71. ExtensibleManagedObject
  72. ManagedCluster types.ManagedObjectReference `mo:"managedCluster"`
  73. EvcState types.ClusterEVCManagerEVCState `mo:"evcState"`
  74. }
  75. func init() {
  76. t["ClusterEVCManager"] = reflect.TypeOf((*ClusterEVCManager)(nil)).Elem()
  77. }
  78. type ClusterProfile struct {
  79. Profile
  80. }
  81. func init() {
  82. t["ClusterProfile"] = reflect.TypeOf((*ClusterProfile)(nil)).Elem()
  83. }
  84. type ClusterProfileManager struct {
  85. ProfileManager
  86. }
  87. func init() {
  88. t["ClusterProfileManager"] = reflect.TypeOf((*ClusterProfileManager)(nil)).Elem()
  89. }
  90. type ComputeResource struct {
  91. ManagedEntity
  92. ResourcePool *types.ManagedObjectReference `mo:"resourcePool"`
  93. Host []types.ManagedObjectReference `mo:"host"`
  94. Datastore []types.ManagedObjectReference `mo:"datastore"`
  95. Network []types.ManagedObjectReference `mo:"network"`
  96. Summary types.BaseComputeResourceSummary `mo:"summary"`
  97. EnvironmentBrowser *types.ManagedObjectReference `mo:"environmentBrowser"`
  98. ConfigurationEx types.BaseComputeResourceConfigInfo `mo:"configurationEx"`
  99. }
  100. func (m *ComputeResource) Entity() *ManagedEntity {
  101. return &m.ManagedEntity
  102. }
  103. func init() {
  104. t["ComputeResource"] = reflect.TypeOf((*ComputeResource)(nil)).Elem()
  105. }
  106. type ContainerView struct {
  107. ManagedObjectView
  108. Container types.ManagedObjectReference `mo:"container"`
  109. Type []string `mo:"type"`
  110. Recursive bool `mo:"recursive"`
  111. }
  112. func init() {
  113. t["ContainerView"] = reflect.TypeOf((*ContainerView)(nil)).Elem()
  114. }
  115. type CryptoManager struct {
  116. Self types.ManagedObjectReference
  117. Enabled bool `mo:"enabled"`
  118. }
  119. func (m CryptoManager) Reference() types.ManagedObjectReference {
  120. return m.Self
  121. }
  122. func init() {
  123. t["CryptoManager"] = reflect.TypeOf((*CryptoManager)(nil)).Elem()
  124. }
  125. type CryptoManagerHost struct {
  126. CryptoManager
  127. }
  128. func init() {
  129. t["CryptoManagerHost"] = reflect.TypeOf((*CryptoManagerHost)(nil)).Elem()
  130. }
  131. type CryptoManagerHostKMS struct {
  132. CryptoManagerHost
  133. }
  134. func init() {
  135. t["CryptoManagerHostKMS"] = reflect.TypeOf((*CryptoManagerHostKMS)(nil)).Elem()
  136. }
  137. type CryptoManagerKmip struct {
  138. CryptoManager
  139. KmipServers []types.KmipClusterInfo `mo:"kmipServers"`
  140. }
  141. func init() {
  142. t["CryptoManagerKmip"] = reflect.TypeOf((*CryptoManagerKmip)(nil)).Elem()
  143. }
  144. type CustomFieldsManager struct {
  145. Self types.ManagedObjectReference
  146. Field []types.CustomFieldDef `mo:"field"`
  147. }
  148. func (m CustomFieldsManager) Reference() types.ManagedObjectReference {
  149. return m.Self
  150. }
  151. func init() {
  152. t["CustomFieldsManager"] = reflect.TypeOf((*CustomFieldsManager)(nil)).Elem()
  153. }
  154. type CustomizationSpecManager struct {
  155. Self types.ManagedObjectReference
  156. Info []types.CustomizationSpecInfo `mo:"info"`
  157. EncryptionKey []byte `mo:"encryptionKey"`
  158. }
  159. func (m CustomizationSpecManager) Reference() types.ManagedObjectReference {
  160. return m.Self
  161. }
  162. func init() {
  163. t["CustomizationSpecManager"] = reflect.TypeOf((*CustomizationSpecManager)(nil)).Elem()
  164. }
  165. type Datacenter struct {
  166. ManagedEntity
  167. VmFolder types.ManagedObjectReference `mo:"vmFolder"`
  168. HostFolder types.ManagedObjectReference `mo:"hostFolder"`
  169. DatastoreFolder types.ManagedObjectReference `mo:"datastoreFolder"`
  170. NetworkFolder types.ManagedObjectReference `mo:"networkFolder"`
  171. Datastore []types.ManagedObjectReference `mo:"datastore"`
  172. Network []types.ManagedObjectReference `mo:"network"`
  173. Configuration types.DatacenterConfigInfo `mo:"configuration"`
  174. }
  175. func (m *Datacenter) Entity() *ManagedEntity {
  176. return &m.ManagedEntity
  177. }
  178. func init() {
  179. t["Datacenter"] = reflect.TypeOf((*Datacenter)(nil)).Elem()
  180. }
  181. type Datastore struct {
  182. ManagedEntity
  183. Info types.BaseDatastoreInfo `mo:"info"`
  184. Summary types.DatastoreSummary `mo:"summary"`
  185. Host []types.DatastoreHostMount `mo:"host"`
  186. Vm []types.ManagedObjectReference `mo:"vm"`
  187. Browser types.ManagedObjectReference `mo:"browser"`
  188. Capability types.DatastoreCapability `mo:"capability"`
  189. IormConfiguration *types.StorageIORMInfo `mo:"iormConfiguration"`
  190. }
  191. func (m *Datastore) Entity() *ManagedEntity {
  192. return &m.ManagedEntity
  193. }
  194. func init() {
  195. t["Datastore"] = reflect.TypeOf((*Datastore)(nil)).Elem()
  196. }
  197. type DatastoreNamespaceManager struct {
  198. Self types.ManagedObjectReference
  199. }
  200. func (m DatastoreNamespaceManager) Reference() types.ManagedObjectReference {
  201. return m.Self
  202. }
  203. func init() {
  204. t["DatastoreNamespaceManager"] = reflect.TypeOf((*DatastoreNamespaceManager)(nil)).Elem()
  205. }
  206. type DiagnosticManager struct {
  207. Self types.ManagedObjectReference
  208. }
  209. func (m DiagnosticManager) Reference() types.ManagedObjectReference {
  210. return m.Self
  211. }
  212. func init() {
  213. t["DiagnosticManager"] = reflect.TypeOf((*DiagnosticManager)(nil)).Elem()
  214. }
  215. type DistributedVirtualPortgroup struct {
  216. Network
  217. Key string `mo:"key"`
  218. Config types.DVPortgroupConfigInfo `mo:"config"`
  219. PortKeys []string `mo:"portKeys"`
  220. }
  221. func init() {
  222. t["DistributedVirtualPortgroup"] = reflect.TypeOf((*DistributedVirtualPortgroup)(nil)).Elem()
  223. }
  224. type DistributedVirtualSwitch struct {
  225. ManagedEntity
  226. Uuid string `mo:"uuid"`
  227. Capability types.DVSCapability `mo:"capability"`
  228. Summary types.DVSSummary `mo:"summary"`
  229. Config types.BaseDVSConfigInfo `mo:"config"`
  230. NetworkResourcePool []types.DVSNetworkResourcePool `mo:"networkResourcePool"`
  231. Portgroup []types.ManagedObjectReference `mo:"portgroup"`
  232. Runtime *types.DVSRuntimeInfo `mo:"runtime"`
  233. }
  234. func (m *DistributedVirtualSwitch) Entity() *ManagedEntity {
  235. return &m.ManagedEntity
  236. }
  237. func init() {
  238. t["DistributedVirtualSwitch"] = reflect.TypeOf((*DistributedVirtualSwitch)(nil)).Elem()
  239. }
  240. type DistributedVirtualSwitchManager struct {
  241. Self types.ManagedObjectReference
  242. }
  243. func (m DistributedVirtualSwitchManager) Reference() types.ManagedObjectReference {
  244. return m.Self
  245. }
  246. func init() {
  247. t["DistributedVirtualSwitchManager"] = reflect.TypeOf((*DistributedVirtualSwitchManager)(nil)).Elem()
  248. }
  249. type EnvironmentBrowser struct {
  250. Self types.ManagedObjectReference
  251. DatastoreBrowser *types.ManagedObjectReference `mo:"datastoreBrowser"`
  252. }
  253. func (m EnvironmentBrowser) Reference() types.ManagedObjectReference {
  254. return m.Self
  255. }
  256. func init() {
  257. t["EnvironmentBrowser"] = reflect.TypeOf((*EnvironmentBrowser)(nil)).Elem()
  258. }
  259. type EventHistoryCollector struct {
  260. HistoryCollector
  261. LatestPage []types.BaseEvent `mo:"latestPage"`
  262. }
  263. func init() {
  264. t["EventHistoryCollector"] = reflect.TypeOf((*EventHistoryCollector)(nil)).Elem()
  265. }
  266. type EventManager struct {
  267. Self types.ManagedObjectReference
  268. Description types.EventDescription `mo:"description"`
  269. LatestEvent types.BaseEvent `mo:"latestEvent"`
  270. MaxCollector int32 `mo:"maxCollector"`
  271. }
  272. func (m EventManager) Reference() types.ManagedObjectReference {
  273. return m.Self
  274. }
  275. func init() {
  276. t["EventManager"] = reflect.TypeOf((*EventManager)(nil)).Elem()
  277. }
  278. type ExtensibleManagedObject struct {
  279. Self types.ManagedObjectReference
  280. Value []types.BaseCustomFieldValue `mo:"value"`
  281. AvailableField []types.CustomFieldDef `mo:"availableField"`
  282. }
  283. func (m ExtensibleManagedObject) Reference() types.ManagedObjectReference {
  284. return m.Self
  285. }
  286. func init() {
  287. t["ExtensibleManagedObject"] = reflect.TypeOf((*ExtensibleManagedObject)(nil)).Elem()
  288. }
  289. type ExtensionManager struct {
  290. Self types.ManagedObjectReference
  291. ExtensionList []types.Extension `mo:"extensionList"`
  292. }
  293. func (m ExtensionManager) Reference() types.ManagedObjectReference {
  294. return m.Self
  295. }
  296. func init() {
  297. t["ExtensionManager"] = reflect.TypeOf((*ExtensionManager)(nil)).Elem()
  298. }
  299. type FailoverClusterConfigurator struct {
  300. Self types.ManagedObjectReference
  301. DisabledConfigureMethod []string `mo:"disabledConfigureMethod"`
  302. }
  303. func (m FailoverClusterConfigurator) Reference() types.ManagedObjectReference {
  304. return m.Self
  305. }
  306. func init() {
  307. t["FailoverClusterConfigurator"] = reflect.TypeOf((*FailoverClusterConfigurator)(nil)).Elem()
  308. }
  309. type FailoverClusterManager struct {
  310. Self types.ManagedObjectReference
  311. DisabledClusterMethod []string `mo:"disabledClusterMethod"`
  312. }
  313. func (m FailoverClusterManager) Reference() types.ManagedObjectReference {
  314. return m.Self
  315. }
  316. func init() {
  317. t["FailoverClusterManager"] = reflect.TypeOf((*FailoverClusterManager)(nil)).Elem()
  318. }
  319. type FileManager struct {
  320. Self types.ManagedObjectReference
  321. }
  322. func (m FileManager) Reference() types.ManagedObjectReference {
  323. return m.Self
  324. }
  325. func init() {
  326. t["FileManager"] = reflect.TypeOf((*FileManager)(nil)).Elem()
  327. }
  328. type Folder struct {
  329. ManagedEntity
  330. ChildType []string `mo:"childType"`
  331. ChildEntity []types.ManagedObjectReference `mo:"childEntity"`
  332. }
  333. func (m *Folder) Entity() *ManagedEntity {
  334. return &m.ManagedEntity
  335. }
  336. func init() {
  337. t["Folder"] = reflect.TypeOf((*Folder)(nil)).Elem()
  338. }
  339. type GuestAliasManager struct {
  340. Self types.ManagedObjectReference
  341. }
  342. func (m GuestAliasManager) Reference() types.ManagedObjectReference {
  343. return m.Self
  344. }
  345. func init() {
  346. t["GuestAliasManager"] = reflect.TypeOf((*GuestAliasManager)(nil)).Elem()
  347. }
  348. type GuestAuthManager struct {
  349. Self types.ManagedObjectReference
  350. }
  351. func (m GuestAuthManager) Reference() types.ManagedObjectReference {
  352. return m.Self
  353. }
  354. func init() {
  355. t["GuestAuthManager"] = reflect.TypeOf((*GuestAuthManager)(nil)).Elem()
  356. }
  357. type GuestFileManager struct {
  358. Self types.ManagedObjectReference
  359. }
  360. func (m GuestFileManager) Reference() types.ManagedObjectReference {
  361. return m.Self
  362. }
  363. func init() {
  364. t["GuestFileManager"] = reflect.TypeOf((*GuestFileManager)(nil)).Elem()
  365. }
  366. type GuestOperationsManager struct {
  367. Self types.ManagedObjectReference
  368. AuthManager *types.ManagedObjectReference `mo:"authManager"`
  369. FileManager *types.ManagedObjectReference `mo:"fileManager"`
  370. ProcessManager *types.ManagedObjectReference `mo:"processManager"`
  371. GuestWindowsRegistryManager *types.ManagedObjectReference `mo:"guestWindowsRegistryManager"`
  372. AliasManager *types.ManagedObjectReference `mo:"aliasManager"`
  373. }
  374. func (m GuestOperationsManager) Reference() types.ManagedObjectReference {
  375. return m.Self
  376. }
  377. func init() {
  378. t["GuestOperationsManager"] = reflect.TypeOf((*GuestOperationsManager)(nil)).Elem()
  379. }
  380. type GuestProcessManager struct {
  381. Self types.ManagedObjectReference
  382. }
  383. func (m GuestProcessManager) Reference() types.ManagedObjectReference {
  384. return m.Self
  385. }
  386. func init() {
  387. t["GuestProcessManager"] = reflect.TypeOf((*GuestProcessManager)(nil)).Elem()
  388. }
  389. type GuestWindowsRegistryManager struct {
  390. Self types.ManagedObjectReference
  391. }
  392. func (m GuestWindowsRegistryManager) Reference() types.ManagedObjectReference {
  393. return m.Self
  394. }
  395. func init() {
  396. t["GuestWindowsRegistryManager"] = reflect.TypeOf((*GuestWindowsRegistryManager)(nil)).Elem()
  397. }
  398. type HealthUpdateManager struct {
  399. Self types.ManagedObjectReference
  400. }
  401. func (m HealthUpdateManager) Reference() types.ManagedObjectReference {
  402. return m.Self
  403. }
  404. func init() {
  405. t["HealthUpdateManager"] = reflect.TypeOf((*HealthUpdateManager)(nil)).Elem()
  406. }
  407. type HistoryCollector struct {
  408. Self types.ManagedObjectReference
  409. Filter types.AnyType `mo:"filter"`
  410. }
  411. func (m HistoryCollector) Reference() types.ManagedObjectReference {
  412. return m.Self
  413. }
  414. func init() {
  415. t["HistoryCollector"] = reflect.TypeOf((*HistoryCollector)(nil)).Elem()
  416. }
  417. type HostAccessManager struct {
  418. Self types.ManagedObjectReference
  419. LockdownMode types.HostLockdownMode `mo:"lockdownMode"`
  420. }
  421. func (m HostAccessManager) Reference() types.ManagedObjectReference {
  422. return m.Self
  423. }
  424. func init() {
  425. t["HostAccessManager"] = reflect.TypeOf((*HostAccessManager)(nil)).Elem()
  426. }
  427. type HostActiveDirectoryAuthentication struct {
  428. HostDirectoryStore
  429. }
  430. func init() {
  431. t["HostActiveDirectoryAuthentication"] = reflect.TypeOf((*HostActiveDirectoryAuthentication)(nil)).Elem()
  432. }
  433. type HostAuthenticationManager struct {
  434. Self types.ManagedObjectReference
  435. Info types.HostAuthenticationManagerInfo `mo:"info"`
  436. SupportedStore []types.ManagedObjectReference `mo:"supportedStore"`
  437. }
  438. func (m HostAuthenticationManager) Reference() types.ManagedObjectReference {
  439. return m.Self
  440. }
  441. func init() {
  442. t["HostAuthenticationManager"] = reflect.TypeOf((*HostAuthenticationManager)(nil)).Elem()
  443. }
  444. type HostAuthenticationStore struct {
  445. Self types.ManagedObjectReference
  446. Info types.BaseHostAuthenticationStoreInfo `mo:"info"`
  447. }
  448. func (m HostAuthenticationStore) Reference() types.ManagedObjectReference {
  449. return m.Self
  450. }
  451. func init() {
  452. t["HostAuthenticationStore"] = reflect.TypeOf((*HostAuthenticationStore)(nil)).Elem()
  453. }
  454. type HostAutoStartManager struct {
  455. Self types.ManagedObjectReference
  456. Config types.HostAutoStartManagerConfig `mo:"config"`
  457. }
  458. func (m HostAutoStartManager) Reference() types.ManagedObjectReference {
  459. return m.Self
  460. }
  461. func init() {
  462. t["HostAutoStartManager"] = reflect.TypeOf((*HostAutoStartManager)(nil)).Elem()
  463. }
  464. type HostBootDeviceSystem struct {
  465. Self types.ManagedObjectReference
  466. }
  467. func (m HostBootDeviceSystem) Reference() types.ManagedObjectReference {
  468. return m.Self
  469. }
  470. func init() {
  471. t["HostBootDeviceSystem"] = reflect.TypeOf((*HostBootDeviceSystem)(nil)).Elem()
  472. }
  473. type HostCacheConfigurationManager struct {
  474. Self types.ManagedObjectReference
  475. CacheConfigurationInfo []types.HostCacheConfigurationInfo `mo:"cacheConfigurationInfo"`
  476. }
  477. func (m HostCacheConfigurationManager) Reference() types.ManagedObjectReference {
  478. return m.Self
  479. }
  480. func init() {
  481. t["HostCacheConfigurationManager"] = reflect.TypeOf((*HostCacheConfigurationManager)(nil)).Elem()
  482. }
  483. type HostCertificateManager struct {
  484. Self types.ManagedObjectReference
  485. CertificateInfo types.HostCertificateManagerCertificateInfo `mo:"certificateInfo"`
  486. }
  487. func (m HostCertificateManager) Reference() types.ManagedObjectReference {
  488. return m.Self
  489. }
  490. func init() {
  491. t["HostCertificateManager"] = reflect.TypeOf((*HostCertificateManager)(nil)).Elem()
  492. }
  493. type HostCpuSchedulerSystem struct {
  494. ExtensibleManagedObject
  495. HyperthreadInfo *types.HostHyperThreadScheduleInfo `mo:"hyperthreadInfo"`
  496. }
  497. func init() {
  498. t["HostCpuSchedulerSystem"] = reflect.TypeOf((*HostCpuSchedulerSystem)(nil)).Elem()
  499. }
  500. type HostDatastoreBrowser struct {
  501. Self types.ManagedObjectReference
  502. Datastore []types.ManagedObjectReference `mo:"datastore"`
  503. SupportedType []types.BaseFileQuery `mo:"supportedType"`
  504. }
  505. func (m HostDatastoreBrowser) Reference() types.ManagedObjectReference {
  506. return m.Self
  507. }
  508. func init() {
  509. t["HostDatastoreBrowser"] = reflect.TypeOf((*HostDatastoreBrowser)(nil)).Elem()
  510. }
  511. type HostDatastoreSystem struct {
  512. Self types.ManagedObjectReference
  513. Datastore []types.ManagedObjectReference `mo:"datastore"`
  514. Capabilities types.HostDatastoreSystemCapabilities `mo:"capabilities"`
  515. }
  516. func (m HostDatastoreSystem) Reference() types.ManagedObjectReference {
  517. return m.Self
  518. }
  519. func init() {
  520. t["HostDatastoreSystem"] = reflect.TypeOf((*HostDatastoreSystem)(nil)).Elem()
  521. }
  522. type HostDateTimeSystem struct {
  523. Self types.ManagedObjectReference
  524. DateTimeInfo types.HostDateTimeInfo `mo:"dateTimeInfo"`
  525. }
  526. func (m HostDateTimeSystem) Reference() types.ManagedObjectReference {
  527. return m.Self
  528. }
  529. func init() {
  530. t["HostDateTimeSystem"] = reflect.TypeOf((*HostDateTimeSystem)(nil)).Elem()
  531. }
  532. type HostDiagnosticSystem struct {
  533. Self types.ManagedObjectReference
  534. ActivePartition *types.HostDiagnosticPartition `mo:"activePartition"`
  535. }
  536. func (m HostDiagnosticSystem) Reference() types.ManagedObjectReference {
  537. return m.Self
  538. }
  539. func init() {
  540. t["HostDiagnosticSystem"] = reflect.TypeOf((*HostDiagnosticSystem)(nil)).Elem()
  541. }
  542. type HostDirectoryStore struct {
  543. HostAuthenticationStore
  544. }
  545. func init() {
  546. t["HostDirectoryStore"] = reflect.TypeOf((*HostDirectoryStore)(nil)).Elem()
  547. }
  548. type HostEsxAgentHostManager struct {
  549. Self types.ManagedObjectReference
  550. ConfigInfo types.HostEsxAgentHostManagerConfigInfo `mo:"configInfo"`
  551. }
  552. func (m HostEsxAgentHostManager) Reference() types.ManagedObjectReference {
  553. return m.Self
  554. }
  555. func init() {
  556. t["HostEsxAgentHostManager"] = reflect.TypeOf((*HostEsxAgentHostManager)(nil)).Elem()
  557. }
  558. type HostFirewallSystem struct {
  559. ExtensibleManagedObject
  560. FirewallInfo *types.HostFirewallInfo `mo:"firewallInfo"`
  561. }
  562. func init() {
  563. t["HostFirewallSystem"] = reflect.TypeOf((*HostFirewallSystem)(nil)).Elem()
  564. }
  565. type HostFirmwareSystem struct {
  566. Self types.ManagedObjectReference
  567. }
  568. func (m HostFirmwareSystem) Reference() types.ManagedObjectReference {
  569. return m.Self
  570. }
  571. func init() {
  572. t["HostFirmwareSystem"] = reflect.TypeOf((*HostFirmwareSystem)(nil)).Elem()
  573. }
  574. type HostGraphicsManager struct {
  575. ExtensibleManagedObject
  576. GraphicsInfo []types.HostGraphicsInfo `mo:"graphicsInfo"`
  577. GraphicsConfig *types.HostGraphicsConfig `mo:"graphicsConfig"`
  578. SharedPassthruGpuTypes []string `mo:"sharedPassthruGpuTypes"`
  579. SharedGpuCapabilities []types.HostSharedGpuCapabilities `mo:"sharedGpuCapabilities"`
  580. }
  581. func init() {
  582. t["HostGraphicsManager"] = reflect.TypeOf((*HostGraphicsManager)(nil)).Elem()
  583. }
  584. type HostHealthStatusSystem struct {
  585. Self types.ManagedObjectReference
  586. Runtime types.HealthSystemRuntime `mo:"runtime"`
  587. }
  588. func (m HostHealthStatusSystem) Reference() types.ManagedObjectReference {
  589. return m.Self
  590. }
  591. func init() {
  592. t["HostHealthStatusSystem"] = reflect.TypeOf((*HostHealthStatusSystem)(nil)).Elem()
  593. }
  594. type HostImageConfigManager struct {
  595. Self types.ManagedObjectReference
  596. }
  597. func (m HostImageConfigManager) Reference() types.ManagedObjectReference {
  598. return m.Self
  599. }
  600. func init() {
  601. t["HostImageConfigManager"] = reflect.TypeOf((*HostImageConfigManager)(nil)).Elem()
  602. }
  603. type HostKernelModuleSystem struct {
  604. Self types.ManagedObjectReference
  605. }
  606. func (m HostKernelModuleSystem) Reference() types.ManagedObjectReference {
  607. return m.Self
  608. }
  609. func init() {
  610. t["HostKernelModuleSystem"] = reflect.TypeOf((*HostKernelModuleSystem)(nil)).Elem()
  611. }
  612. type HostLocalAccountManager struct {
  613. Self types.ManagedObjectReference
  614. }
  615. func (m HostLocalAccountManager) Reference() types.ManagedObjectReference {
  616. return m.Self
  617. }
  618. func init() {
  619. t["HostLocalAccountManager"] = reflect.TypeOf((*HostLocalAccountManager)(nil)).Elem()
  620. }
  621. type HostLocalAuthentication struct {
  622. HostAuthenticationStore
  623. }
  624. func init() {
  625. t["HostLocalAuthentication"] = reflect.TypeOf((*HostLocalAuthentication)(nil)).Elem()
  626. }
  627. type HostMemorySystem struct {
  628. ExtensibleManagedObject
  629. ConsoleReservationInfo *types.ServiceConsoleReservationInfo `mo:"consoleReservationInfo"`
  630. VirtualMachineReservationInfo *types.VirtualMachineMemoryReservationInfo `mo:"virtualMachineReservationInfo"`
  631. }
  632. func init() {
  633. t["HostMemorySystem"] = reflect.TypeOf((*HostMemorySystem)(nil)).Elem()
  634. }
  635. type HostNetworkSystem struct {
  636. ExtensibleManagedObject
  637. Capabilities *types.HostNetCapabilities `mo:"capabilities"`
  638. NetworkInfo *types.HostNetworkInfo `mo:"networkInfo"`
  639. OffloadCapabilities *types.HostNetOffloadCapabilities `mo:"offloadCapabilities"`
  640. NetworkConfig *types.HostNetworkConfig `mo:"networkConfig"`
  641. DnsConfig types.BaseHostDnsConfig `mo:"dnsConfig"`
  642. IpRouteConfig types.BaseHostIpRouteConfig `mo:"ipRouteConfig"`
  643. ConsoleIpRouteConfig types.BaseHostIpRouteConfig `mo:"consoleIpRouteConfig"`
  644. }
  645. func init() {
  646. t["HostNetworkSystem"] = reflect.TypeOf((*HostNetworkSystem)(nil)).Elem()
  647. }
  648. type HostNvdimmSystem struct {
  649. Self types.ManagedObjectReference
  650. NvdimmSystemInfo types.NvdimmSystemInfo `mo:"nvdimmSystemInfo"`
  651. }
  652. func (m HostNvdimmSystem) Reference() types.ManagedObjectReference {
  653. return m.Self
  654. }
  655. func init() {
  656. t["HostNvdimmSystem"] = reflect.TypeOf((*HostNvdimmSystem)(nil)).Elem()
  657. }
  658. type HostPatchManager struct {
  659. Self types.ManagedObjectReference
  660. }
  661. func (m HostPatchManager) Reference() types.ManagedObjectReference {
  662. return m.Self
  663. }
  664. func init() {
  665. t["HostPatchManager"] = reflect.TypeOf((*HostPatchManager)(nil)).Elem()
  666. }
  667. type HostPciPassthruSystem struct {
  668. ExtensibleManagedObject
  669. PciPassthruInfo []types.BaseHostPciPassthruInfo `mo:"pciPassthruInfo"`
  670. SriovDevicePoolInfo []types.BaseHostSriovDevicePoolInfo `mo:"sriovDevicePoolInfo"`
  671. }
  672. func init() {
  673. t["HostPciPassthruSystem"] = reflect.TypeOf((*HostPciPassthruSystem)(nil)).Elem()
  674. }
  675. type HostPowerSystem struct {
  676. Self types.ManagedObjectReference
  677. Capability types.PowerSystemCapability `mo:"capability"`
  678. Info types.PowerSystemInfo `mo:"info"`
  679. }
  680. func (m HostPowerSystem) Reference() types.ManagedObjectReference {
  681. return m.Self
  682. }
  683. func init() {
  684. t["HostPowerSystem"] = reflect.TypeOf((*HostPowerSystem)(nil)).Elem()
  685. }
  686. type HostProfile struct {
  687. Profile
  688. ValidationState *string `mo:"validationState"`
  689. ValidationStateUpdateTime *time.Time `mo:"validationStateUpdateTime"`
  690. ValidationFailureInfo *types.HostProfileValidationFailureInfo `mo:"validationFailureInfo"`
  691. ReferenceHost *types.ManagedObjectReference `mo:"referenceHost"`
  692. }
  693. func init() {
  694. t["HostProfile"] = reflect.TypeOf((*HostProfile)(nil)).Elem()
  695. }
  696. type HostProfileManager struct {
  697. ProfileManager
  698. }
  699. func init() {
  700. t["HostProfileManager"] = reflect.TypeOf((*HostProfileManager)(nil)).Elem()
  701. }
  702. type HostServiceSystem struct {
  703. ExtensibleManagedObject
  704. ServiceInfo types.HostServiceInfo `mo:"serviceInfo"`
  705. }
  706. func init() {
  707. t["HostServiceSystem"] = reflect.TypeOf((*HostServiceSystem)(nil)).Elem()
  708. }
  709. type HostSnmpSystem struct {
  710. Self types.ManagedObjectReference
  711. Configuration types.HostSnmpConfigSpec `mo:"configuration"`
  712. Limits types.HostSnmpSystemAgentLimits `mo:"limits"`
  713. }
  714. func (m HostSnmpSystem) Reference() types.ManagedObjectReference {
  715. return m.Self
  716. }
  717. func init() {
  718. t["HostSnmpSystem"] = reflect.TypeOf((*HostSnmpSystem)(nil)).Elem()
  719. }
  720. type HostSpecificationManager struct {
  721. Self types.ManagedObjectReference
  722. }
  723. func (m HostSpecificationManager) Reference() types.ManagedObjectReference {
  724. return m.Self
  725. }
  726. func init() {
  727. t["HostSpecificationManager"] = reflect.TypeOf((*HostSpecificationManager)(nil)).Elem()
  728. }
  729. type HostStorageSystem struct {
  730. ExtensibleManagedObject
  731. StorageDeviceInfo *types.HostStorageDeviceInfo `mo:"storageDeviceInfo"`
  732. FileSystemVolumeInfo types.HostFileSystemVolumeInfo `mo:"fileSystemVolumeInfo"`
  733. SystemFile []string `mo:"systemFile"`
  734. MultipathStateInfo *types.HostMultipathStateInfo `mo:"multipathStateInfo"`
  735. }
  736. func init() {
  737. t["HostStorageSystem"] = reflect.TypeOf((*HostStorageSystem)(nil)).Elem()
  738. }
  739. type HostSystem struct {
  740. ManagedEntity
  741. Runtime types.HostRuntimeInfo `mo:"runtime"`
  742. Summary types.HostListSummary `mo:"summary"`
  743. Hardware *types.HostHardwareInfo `mo:"hardware"`
  744. Capability *types.HostCapability `mo:"capability"`
  745. LicensableResource types.HostLicensableResourceInfo `mo:"licensableResource"`
  746. RemediationState *types.HostSystemRemediationState `mo:"remediationState"`
  747. PrecheckRemediationResult *types.ApplyHostProfileConfigurationSpec `mo:"precheckRemediationResult"`
  748. RemediationResult *types.ApplyHostProfileConfigurationResult `mo:"remediationResult"`
  749. ComplianceCheckState *types.HostSystemComplianceCheckState `mo:"complianceCheckState"`
  750. ComplianceCheckResult *types.ComplianceResult `mo:"complianceCheckResult"`
  751. ConfigManager types.HostConfigManager `mo:"configManager"`
  752. Config *types.HostConfigInfo `mo:"config"`
  753. Vm []types.ManagedObjectReference `mo:"vm"`
  754. Datastore []types.ManagedObjectReference `mo:"datastore"`
  755. Network []types.ManagedObjectReference `mo:"network"`
  756. DatastoreBrowser types.ManagedObjectReference `mo:"datastoreBrowser"`
  757. SystemResources *types.HostSystemResourceInfo `mo:"systemResources"`
  758. AnswerFileValidationState *types.AnswerFileStatusResult `mo:"answerFileValidationState"`
  759. AnswerFileValidationResult *types.AnswerFileStatusResult `mo:"answerFileValidationResult"`
  760. }
  761. func (m *HostSystem) Entity() *ManagedEntity {
  762. return &m.ManagedEntity
  763. }
  764. func init() {
  765. t["HostSystem"] = reflect.TypeOf((*HostSystem)(nil)).Elem()
  766. }
  767. type HostVFlashManager struct {
  768. Self types.ManagedObjectReference
  769. VFlashConfigInfo *types.HostVFlashManagerVFlashConfigInfo `mo:"vFlashConfigInfo"`
  770. }
  771. func (m HostVFlashManager) Reference() types.ManagedObjectReference {
  772. return m.Self
  773. }
  774. func init() {
  775. t["HostVFlashManager"] = reflect.TypeOf((*HostVFlashManager)(nil)).Elem()
  776. }
  777. type HostVMotionSystem struct {
  778. ExtensibleManagedObject
  779. NetConfig *types.HostVMotionNetConfig `mo:"netConfig"`
  780. IpConfig *types.HostIpConfig `mo:"ipConfig"`
  781. }
  782. func init() {
  783. t["HostVMotionSystem"] = reflect.TypeOf((*HostVMotionSystem)(nil)).Elem()
  784. }
  785. type HostVStorageObjectManager struct {
  786. VStorageObjectManagerBase
  787. }
  788. func init() {
  789. t["HostVStorageObjectManager"] = reflect.TypeOf((*HostVStorageObjectManager)(nil)).Elem()
  790. }
  791. type HostVirtualNicManager struct {
  792. ExtensibleManagedObject
  793. Info types.HostVirtualNicManagerInfo `mo:"info"`
  794. }
  795. func init() {
  796. t["HostVirtualNicManager"] = reflect.TypeOf((*HostVirtualNicManager)(nil)).Elem()
  797. }
  798. type HostVsanInternalSystem struct {
  799. Self types.ManagedObjectReference
  800. }
  801. func (m HostVsanInternalSystem) Reference() types.ManagedObjectReference {
  802. return m.Self
  803. }
  804. func init() {
  805. t["HostVsanInternalSystem"] = reflect.TypeOf((*HostVsanInternalSystem)(nil)).Elem()
  806. }
  807. type HostVsanSystem struct {
  808. Self types.ManagedObjectReference
  809. Config types.VsanHostConfigInfo `mo:"config"`
  810. }
  811. func (m HostVsanSystem) Reference() types.ManagedObjectReference {
  812. return m.Self
  813. }
  814. func init() {
  815. t["HostVsanSystem"] = reflect.TypeOf((*HostVsanSystem)(nil)).Elem()
  816. }
  817. type HttpNfcLease struct {
  818. Self types.ManagedObjectReference
  819. InitializeProgress int32 `mo:"initializeProgress"`
  820. TransferProgress int32 `mo:"transferProgress"`
  821. Mode string `mo:"mode"`
  822. Capabilities types.HttpNfcLeaseCapabilities `mo:"capabilities"`
  823. Info *types.HttpNfcLeaseInfo `mo:"info"`
  824. State types.HttpNfcLeaseState `mo:"state"`
  825. Error *types.LocalizedMethodFault `mo:"error"`
  826. }
  827. func (m HttpNfcLease) Reference() types.ManagedObjectReference {
  828. return m.Self
  829. }
  830. func init() {
  831. t["HttpNfcLease"] = reflect.TypeOf((*HttpNfcLease)(nil)).Elem()
  832. }
  833. type InventoryView struct {
  834. ManagedObjectView
  835. }
  836. func init() {
  837. t["InventoryView"] = reflect.TypeOf((*InventoryView)(nil)).Elem()
  838. }
  839. type IoFilterManager struct {
  840. Self types.ManagedObjectReference
  841. }
  842. func (m IoFilterManager) Reference() types.ManagedObjectReference {
  843. return m.Self
  844. }
  845. func init() {
  846. t["IoFilterManager"] = reflect.TypeOf((*IoFilterManager)(nil)).Elem()
  847. }
  848. type IpPoolManager struct {
  849. Self types.ManagedObjectReference
  850. }
  851. func (m IpPoolManager) Reference() types.ManagedObjectReference {
  852. return m.Self
  853. }
  854. func init() {
  855. t["IpPoolManager"] = reflect.TypeOf((*IpPoolManager)(nil)).Elem()
  856. }
  857. type IscsiManager struct {
  858. Self types.ManagedObjectReference
  859. }
  860. func (m IscsiManager) Reference() types.ManagedObjectReference {
  861. return m.Self
  862. }
  863. func init() {
  864. t["IscsiManager"] = reflect.TypeOf((*IscsiManager)(nil)).Elem()
  865. }
  866. type LicenseAssignmentManager struct {
  867. Self types.ManagedObjectReference
  868. }
  869. func (m LicenseAssignmentManager) Reference() types.ManagedObjectReference {
  870. return m.Self
  871. }
  872. func init() {
  873. t["LicenseAssignmentManager"] = reflect.TypeOf((*LicenseAssignmentManager)(nil)).Elem()
  874. }
  875. type LicenseManager struct {
  876. Self types.ManagedObjectReference
  877. Source types.BaseLicenseSource `mo:"source"`
  878. SourceAvailable bool `mo:"sourceAvailable"`
  879. Diagnostics *types.LicenseDiagnostics `mo:"diagnostics"`
  880. FeatureInfo []types.LicenseFeatureInfo `mo:"featureInfo"`
  881. LicensedEdition string `mo:"licensedEdition"`
  882. Licenses []types.LicenseManagerLicenseInfo `mo:"licenses"`
  883. LicenseAssignmentManager *types.ManagedObjectReference `mo:"licenseAssignmentManager"`
  884. Evaluation types.LicenseManagerEvaluationInfo `mo:"evaluation"`
  885. }
  886. func (m LicenseManager) Reference() types.ManagedObjectReference {
  887. return m.Self
  888. }
  889. func init() {
  890. t["LicenseManager"] = reflect.TypeOf((*LicenseManager)(nil)).Elem()
  891. }
  892. type ListView struct {
  893. ManagedObjectView
  894. }
  895. func init() {
  896. t["ListView"] = reflect.TypeOf((*ListView)(nil)).Elem()
  897. }
  898. type LocalizationManager struct {
  899. Self types.ManagedObjectReference
  900. Catalog []types.LocalizationManagerMessageCatalog `mo:"catalog"`
  901. }
  902. func (m LocalizationManager) Reference() types.ManagedObjectReference {
  903. return m.Self
  904. }
  905. func init() {
  906. t["LocalizationManager"] = reflect.TypeOf((*LocalizationManager)(nil)).Elem()
  907. }
  908. type ManagedEntity struct {
  909. ExtensibleManagedObject
  910. Parent *types.ManagedObjectReference `mo:"parent"`
  911. CustomValue []types.BaseCustomFieldValue `mo:"customValue"`
  912. OverallStatus types.ManagedEntityStatus `mo:"overallStatus"`
  913. ConfigStatus types.ManagedEntityStatus `mo:"configStatus"`
  914. ConfigIssue []types.BaseEvent `mo:"configIssue"`
  915. EffectiveRole []int32 `mo:"effectiveRole"`
  916. Permission []types.Permission `mo:"permission"`
  917. Name string `mo:"name"`
  918. DisabledMethod []string `mo:"disabledMethod"`
  919. RecentTask []types.ManagedObjectReference `mo:"recentTask"`
  920. DeclaredAlarmState []types.AlarmState `mo:"declaredAlarmState"`
  921. TriggeredAlarmState []types.AlarmState `mo:"triggeredAlarmState"`
  922. AlarmActionsEnabled *bool `mo:"alarmActionsEnabled"`
  923. Tag []types.Tag `mo:"tag"`
  924. }
  925. func init() {
  926. t["ManagedEntity"] = reflect.TypeOf((*ManagedEntity)(nil)).Elem()
  927. }
  928. type ManagedObjectView struct {
  929. Self types.ManagedObjectReference
  930. View []types.ManagedObjectReference `mo:"view"`
  931. }
  932. func (m ManagedObjectView) Reference() types.ManagedObjectReference {
  933. return m.Self
  934. }
  935. func init() {
  936. t["ManagedObjectView"] = reflect.TypeOf((*ManagedObjectView)(nil)).Elem()
  937. }
  938. type MessageBusProxy struct {
  939. Self types.ManagedObjectReference
  940. }
  941. func (m MessageBusProxy) Reference() types.ManagedObjectReference {
  942. return m.Self
  943. }
  944. func init() {
  945. t["MessageBusProxy"] = reflect.TypeOf((*MessageBusProxy)(nil)).Elem()
  946. }
  947. type Network struct {
  948. ManagedEntity
  949. Name string `mo:"name"`
  950. Summary types.BaseNetworkSummary `mo:"summary"`
  951. Host []types.ManagedObjectReference `mo:"host"`
  952. Vm []types.ManagedObjectReference `mo:"vm"`
  953. }
  954. func (m *Network) Entity() *ManagedEntity {
  955. return &m.ManagedEntity
  956. }
  957. func init() {
  958. t["Network"] = reflect.TypeOf((*Network)(nil)).Elem()
  959. }
  960. type OpaqueNetwork struct {
  961. Network
  962. Capability *types.OpaqueNetworkCapability `mo:"capability"`
  963. ExtraConfig []types.BaseOptionValue `mo:"extraConfig"`
  964. }
  965. func init() {
  966. t["OpaqueNetwork"] = reflect.TypeOf((*OpaqueNetwork)(nil)).Elem()
  967. }
  968. type OptionManager struct {
  969. Self types.ManagedObjectReference
  970. SupportedOption []types.OptionDef `mo:"supportedOption"`
  971. Setting []types.BaseOptionValue `mo:"setting"`
  972. }
  973. func (m OptionManager) Reference() types.ManagedObjectReference {
  974. return m.Self
  975. }
  976. func init() {
  977. t["OptionManager"] = reflect.TypeOf((*OptionManager)(nil)).Elem()
  978. }
  979. type OverheadMemoryManager struct {
  980. Self types.ManagedObjectReference
  981. }
  982. func (m OverheadMemoryManager) Reference() types.ManagedObjectReference {
  983. return m.Self
  984. }
  985. func init() {
  986. t["OverheadMemoryManager"] = reflect.TypeOf((*OverheadMemoryManager)(nil)).Elem()
  987. }
  988. type OvfManager struct {
  989. Self types.ManagedObjectReference
  990. OvfImportOption []types.OvfOptionInfo `mo:"ovfImportOption"`
  991. OvfExportOption []types.OvfOptionInfo `mo:"ovfExportOption"`
  992. }
  993. func (m OvfManager) Reference() types.ManagedObjectReference {
  994. return m.Self
  995. }
  996. func init() {
  997. t["OvfManager"] = reflect.TypeOf((*OvfManager)(nil)).Elem()
  998. }
  999. type PerformanceManager struct {
  1000. Self types.ManagedObjectReference
  1001. Description types.PerformanceDescription `mo:"description"`
  1002. HistoricalInterval []types.PerfInterval `mo:"historicalInterval"`
  1003. PerfCounter []types.PerfCounterInfo `mo:"perfCounter"`
  1004. }
  1005. func (m PerformanceManager) Reference() types.ManagedObjectReference {
  1006. return m.Self
  1007. }
  1008. func init() {
  1009. t["PerformanceManager"] = reflect.TypeOf((*PerformanceManager)(nil)).Elem()
  1010. }
  1011. type Profile struct {
  1012. Self types.ManagedObjectReference
  1013. Config types.BaseProfileConfigInfo `mo:"config"`
  1014. Description *types.ProfileDescription `mo:"description"`
  1015. Name string `mo:"name"`
  1016. CreatedTime time.Time `mo:"createdTime"`
  1017. ModifiedTime time.Time `mo:"modifiedTime"`
  1018. Entity []types.ManagedObjectReference `mo:"entity"`
  1019. ComplianceStatus string `mo:"complianceStatus"`
  1020. }
  1021. func (m Profile) Reference() types.ManagedObjectReference {
  1022. return m.Self
  1023. }
  1024. func init() {
  1025. t["Profile"] = reflect.TypeOf((*Profile)(nil)).Elem()
  1026. }
  1027. type ProfileComplianceManager struct {
  1028. Self types.ManagedObjectReference
  1029. }
  1030. func (m ProfileComplianceManager) Reference() types.ManagedObjectReference {
  1031. return m.Self
  1032. }
  1033. func init() {
  1034. t["ProfileComplianceManager"] = reflect.TypeOf((*ProfileComplianceManager)(nil)).Elem()
  1035. }
  1036. type ProfileManager struct {
  1037. Self types.ManagedObjectReference
  1038. Profile []types.ManagedObjectReference `mo:"profile"`
  1039. }
  1040. func (m ProfileManager) Reference() types.ManagedObjectReference {
  1041. return m.Self
  1042. }
  1043. func init() {
  1044. t["ProfileManager"] = reflect.TypeOf((*ProfileManager)(nil)).Elem()
  1045. }
  1046. type PropertyCollector struct {
  1047. Self types.ManagedObjectReference
  1048. Filter []types.ManagedObjectReference `mo:"filter"`
  1049. }
  1050. func (m PropertyCollector) Reference() types.ManagedObjectReference {
  1051. return m.Self
  1052. }
  1053. func init() {
  1054. t["PropertyCollector"] = reflect.TypeOf((*PropertyCollector)(nil)).Elem()
  1055. }
  1056. type PropertyFilter struct {
  1057. Self types.ManagedObjectReference
  1058. Spec types.PropertyFilterSpec `mo:"spec"`
  1059. PartialUpdates bool `mo:"partialUpdates"`
  1060. }
  1061. func (m PropertyFilter) Reference() types.ManagedObjectReference {
  1062. return m.Self
  1063. }
  1064. func init() {
  1065. t["PropertyFilter"] = reflect.TypeOf((*PropertyFilter)(nil)).Elem()
  1066. }
  1067. type ResourcePlanningManager struct {
  1068. Self types.ManagedObjectReference
  1069. }
  1070. func (m ResourcePlanningManager) Reference() types.ManagedObjectReference {
  1071. return m.Self
  1072. }
  1073. func init() {
  1074. t["ResourcePlanningManager"] = reflect.TypeOf((*ResourcePlanningManager)(nil)).Elem()
  1075. }
  1076. type ResourcePool struct {
  1077. ManagedEntity
  1078. Summary types.BaseResourcePoolSummary `mo:"summary"`
  1079. Runtime types.ResourcePoolRuntimeInfo `mo:"runtime"`
  1080. Owner types.ManagedObjectReference `mo:"owner"`
  1081. ResourcePool []types.ManagedObjectReference `mo:"resourcePool"`
  1082. Vm []types.ManagedObjectReference `mo:"vm"`
  1083. Config types.ResourceConfigSpec `mo:"config"`
  1084. ChildConfiguration []types.ResourceConfigSpec `mo:"childConfiguration"`
  1085. }
  1086. func (m *ResourcePool) Entity() *ManagedEntity {
  1087. return &m.ManagedEntity
  1088. }
  1089. func init() {
  1090. t["ResourcePool"] = reflect.TypeOf((*ResourcePool)(nil)).Elem()
  1091. }
  1092. type ScheduledTask struct {
  1093. ExtensibleManagedObject
  1094. Info types.ScheduledTaskInfo `mo:"info"`
  1095. }
  1096. func init() {
  1097. t["ScheduledTask"] = reflect.TypeOf((*ScheduledTask)(nil)).Elem()
  1098. }
  1099. type ScheduledTaskManager struct {
  1100. Self types.ManagedObjectReference
  1101. ScheduledTask []types.ManagedObjectReference `mo:"scheduledTask"`
  1102. Description types.ScheduledTaskDescription `mo:"description"`
  1103. }
  1104. func (m ScheduledTaskManager) Reference() types.ManagedObjectReference {
  1105. return m.Self
  1106. }
  1107. func init() {
  1108. t["ScheduledTaskManager"] = reflect.TypeOf((*ScheduledTaskManager)(nil)).Elem()
  1109. }
  1110. type SearchIndex struct {
  1111. Self types.ManagedObjectReference
  1112. }
  1113. func (m SearchIndex) Reference() types.ManagedObjectReference {
  1114. return m.Self
  1115. }
  1116. func init() {
  1117. t["SearchIndex"] = reflect.TypeOf((*SearchIndex)(nil)).Elem()
  1118. }
  1119. type ServiceInstance struct {
  1120. Self types.ManagedObjectReference
  1121. ServerClock time.Time `mo:"serverClock"`
  1122. Capability types.Capability `mo:"capability"`
  1123. Content types.ServiceContent `mo:"content"`
  1124. }
  1125. func (m ServiceInstance) Reference() types.ManagedObjectReference {
  1126. return m.Self
  1127. }
  1128. func init() {
  1129. t["ServiceInstance"] = reflect.TypeOf((*ServiceInstance)(nil)).Elem()
  1130. }
  1131. type ServiceManager struct {
  1132. Self types.ManagedObjectReference
  1133. Service []types.ServiceManagerServiceInfo `mo:"service"`
  1134. }
  1135. func (m ServiceManager) Reference() types.ManagedObjectReference {
  1136. return m.Self
  1137. }
  1138. func init() {
  1139. t["ServiceManager"] = reflect.TypeOf((*ServiceManager)(nil)).Elem()
  1140. }
  1141. type SessionManager struct {
  1142. Self types.ManagedObjectReference
  1143. SessionList []types.UserSession `mo:"sessionList"`
  1144. CurrentSession *types.UserSession `mo:"currentSession"`
  1145. Message *string `mo:"message"`
  1146. MessageLocaleList []string `mo:"messageLocaleList"`
  1147. SupportedLocaleList []string `mo:"supportedLocaleList"`
  1148. DefaultLocale string `mo:"defaultLocale"`
  1149. }
  1150. func (m SessionManager) Reference() types.ManagedObjectReference {
  1151. return m.Self
  1152. }
  1153. func init() {
  1154. t["SessionManager"] = reflect.TypeOf((*SessionManager)(nil)).Elem()
  1155. }
  1156. type SimpleCommand struct {
  1157. Self types.ManagedObjectReference
  1158. EncodingType types.SimpleCommandEncoding `mo:"encodingType"`
  1159. Entity types.ServiceManagerServiceInfo `mo:"entity"`
  1160. }
  1161. func (m SimpleCommand) Reference() types.ManagedObjectReference {
  1162. return m.Self
  1163. }
  1164. func init() {
  1165. t["SimpleCommand"] = reflect.TypeOf((*SimpleCommand)(nil)).Elem()
  1166. }
  1167. type StoragePod struct {
  1168. Folder
  1169. Summary *types.StoragePodSummary `mo:"summary"`
  1170. PodStorageDrsEntry *types.PodStorageDrsEntry `mo:"podStorageDrsEntry"`
  1171. }
  1172. func init() {
  1173. t["StoragePod"] = reflect.TypeOf((*StoragePod)(nil)).Elem()
  1174. }
  1175. type StorageResourceManager struct {
  1176. Self types.ManagedObjectReference
  1177. }
  1178. func (m StorageResourceManager) Reference() types.ManagedObjectReference {
  1179. return m.Self
  1180. }
  1181. func init() {
  1182. t["StorageResourceManager"] = reflect.TypeOf((*StorageResourceManager)(nil)).Elem()
  1183. }
  1184. type Task struct {
  1185. ExtensibleManagedObject
  1186. Info types.TaskInfo `mo:"info"`
  1187. }
  1188. func init() {
  1189. t["Task"] = reflect.TypeOf((*Task)(nil)).Elem()
  1190. }
  1191. type TaskHistoryCollector struct {
  1192. HistoryCollector
  1193. LatestPage []types.TaskInfo `mo:"latestPage"`
  1194. }
  1195. func init() {
  1196. t["TaskHistoryCollector"] = reflect.TypeOf((*TaskHistoryCollector)(nil)).Elem()
  1197. }
  1198. type TaskManager struct {
  1199. Self types.ManagedObjectReference
  1200. RecentTask []types.ManagedObjectReference `mo:"recentTask"`
  1201. Description types.TaskDescription `mo:"description"`
  1202. MaxCollector int32 `mo:"maxCollector"`
  1203. }
  1204. func (m TaskManager) Reference() types.ManagedObjectReference {
  1205. return m.Self
  1206. }
  1207. func init() {
  1208. t["TaskManager"] = reflect.TypeOf((*TaskManager)(nil)).Elem()
  1209. }
  1210. type UserDirectory struct {
  1211. Self types.ManagedObjectReference
  1212. DomainList []string `mo:"domainList"`
  1213. }
  1214. func (m UserDirectory) Reference() types.ManagedObjectReference {
  1215. return m.Self
  1216. }
  1217. func init() {
  1218. t["UserDirectory"] = reflect.TypeOf((*UserDirectory)(nil)).Elem()
  1219. }
  1220. type VStorageObjectManagerBase struct {
  1221. Self types.ManagedObjectReference
  1222. }
  1223. func (m VStorageObjectManagerBase) Reference() types.ManagedObjectReference {
  1224. return m.Self
  1225. }
  1226. func init() {
  1227. t["VStorageObjectManagerBase"] = reflect.TypeOf((*VStorageObjectManagerBase)(nil)).Elem()
  1228. }
  1229. type VcenterVStorageObjectManager struct {
  1230. VStorageObjectManagerBase
  1231. }
  1232. func init() {
  1233. t["VcenterVStorageObjectManager"] = reflect.TypeOf((*VcenterVStorageObjectManager)(nil)).Elem()
  1234. }
  1235. type View struct {
  1236. Self types.ManagedObjectReference
  1237. }
  1238. func (m View) Reference() types.ManagedObjectReference {
  1239. return m.Self
  1240. }
  1241. func init() {
  1242. t["View"] = reflect.TypeOf((*View)(nil)).Elem()
  1243. }
  1244. type ViewManager struct {
  1245. Self types.ManagedObjectReference
  1246. ViewList []types.ManagedObjectReference `mo:"viewList"`
  1247. }
  1248. func (m ViewManager) Reference() types.ManagedObjectReference {
  1249. return m.Self
  1250. }
  1251. func init() {
  1252. t["ViewManager"] = reflect.TypeOf((*ViewManager)(nil)).Elem()
  1253. }
  1254. type VirtualApp struct {
  1255. ResourcePool
  1256. ParentFolder *types.ManagedObjectReference `mo:"parentFolder"`
  1257. Datastore []types.ManagedObjectReference `mo:"datastore"`
  1258. Network []types.ManagedObjectReference `mo:"network"`
  1259. VAppConfig *types.VAppConfigInfo `mo:"vAppConfig"`
  1260. ParentVApp *types.ManagedObjectReference `mo:"parentVApp"`
  1261. ChildLink []types.VirtualAppLinkInfo `mo:"childLink"`
  1262. }
  1263. func init() {
  1264. t["VirtualApp"] = reflect.TypeOf((*VirtualApp)(nil)).Elem()
  1265. }
  1266. type VirtualDiskManager struct {
  1267. Self types.ManagedObjectReference
  1268. }
  1269. func (m VirtualDiskManager) Reference() types.ManagedObjectReference {
  1270. return m.Self
  1271. }
  1272. func init() {
  1273. t["VirtualDiskManager"] = reflect.TypeOf((*VirtualDiskManager)(nil)).Elem()
  1274. }
  1275. type VirtualMachine struct {
  1276. ManagedEntity
  1277. Capability types.VirtualMachineCapability `mo:"capability"`
  1278. Config *types.VirtualMachineConfigInfo `mo:"config"`
  1279. Layout *types.VirtualMachineFileLayout `mo:"layout"`
  1280. LayoutEx *types.VirtualMachineFileLayoutEx `mo:"layoutEx"`
  1281. Storage *types.VirtualMachineStorageInfo `mo:"storage"`
  1282. EnvironmentBrowser types.ManagedObjectReference `mo:"environmentBrowser"`
  1283. ResourcePool *types.ManagedObjectReference `mo:"resourcePool"`
  1284. ParentVApp *types.ManagedObjectReference `mo:"parentVApp"`
  1285. ResourceConfig *types.ResourceConfigSpec `mo:"resourceConfig"`
  1286. Runtime types.VirtualMachineRuntimeInfo `mo:"runtime"`
  1287. Guest *types.GuestInfo `mo:"guest"`
  1288. Summary types.VirtualMachineSummary `mo:"summary"`
  1289. Datastore []types.ManagedObjectReference `mo:"datastore"`
  1290. Network []types.ManagedObjectReference `mo:"network"`
  1291. Snapshot *types.VirtualMachineSnapshotInfo `mo:"snapshot"`
  1292. RootSnapshot []types.ManagedObjectReference `mo:"rootSnapshot"`
  1293. GuestHeartbeatStatus types.ManagedEntityStatus `mo:"guestHeartbeatStatus"`
  1294. }
  1295. func (m *VirtualMachine) Entity() *ManagedEntity {
  1296. return &m.ManagedEntity
  1297. }
  1298. func init() {
  1299. t["VirtualMachine"] = reflect.TypeOf((*VirtualMachine)(nil)).Elem()
  1300. }
  1301. type VirtualMachineCompatibilityChecker struct {
  1302. Self types.ManagedObjectReference
  1303. }
  1304. func (m VirtualMachineCompatibilityChecker) Reference() types.ManagedObjectReference {
  1305. return m.Self
  1306. }
  1307. func init() {
  1308. t["VirtualMachineCompatibilityChecker"] = reflect.TypeOf((*VirtualMachineCompatibilityChecker)(nil)).Elem()
  1309. }
  1310. type VirtualMachineProvisioningChecker struct {
  1311. Self types.ManagedObjectReference
  1312. }
  1313. func (m VirtualMachineProvisioningChecker) Reference() types.ManagedObjectReference {
  1314. return m.Self
  1315. }
  1316. func init() {
  1317. t["VirtualMachineProvisioningChecker"] = reflect.TypeOf((*VirtualMachineProvisioningChecker)(nil)).Elem()
  1318. }
  1319. type VirtualMachineSnapshot struct {
  1320. ExtensibleManagedObject
  1321. Config types.VirtualMachineConfigInfo `mo:"config"`
  1322. ChildSnapshot []types.ManagedObjectReference `mo:"childSnapshot"`
  1323. Vm types.ManagedObjectReference `mo:"vm"`
  1324. }
  1325. func init() {
  1326. t["VirtualMachineSnapshot"] = reflect.TypeOf((*VirtualMachineSnapshot)(nil)).Elem()
  1327. }
  1328. type VirtualizationManager struct {
  1329. Self types.ManagedObjectReference
  1330. }
  1331. func (m VirtualizationManager) Reference() types.ManagedObjectReference {
  1332. return m.Self
  1333. }
  1334. func init() {
  1335. t["VirtualizationManager"] = reflect.TypeOf((*VirtualizationManager)(nil)).Elem()
  1336. }
  1337. type VmwareDistributedVirtualSwitch struct {
  1338. DistributedVirtualSwitch
  1339. }
  1340. func init() {
  1341. t["VmwareDistributedVirtualSwitch"] = reflect.TypeOf((*VmwareDistributedVirtualSwitch)(nil)).Elem()
  1342. }
  1343. type VsanUpgradeSystem struct {
  1344. Self types.ManagedObjectReference
  1345. }
  1346. func (m VsanUpgradeSystem) Reference() types.ManagedObjectReference {
  1347. return m.Self
  1348. }
  1349. func init() {
  1350. t["VsanUpgradeSystem"] = reflect.TypeOf((*VsanUpgradeSystem)(nil)).Elem()
  1351. }