extra.go 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. /*
  2. Copyright (c) 2014 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. type IsManagedEntity interface {
  15. GetManagedEntity() ManagedEntity
  16. }
  17. func (m ComputeResource) GetManagedEntity() ManagedEntity {
  18. return m.ManagedEntity
  19. }
  20. func (m Datacenter) GetManagedEntity() ManagedEntity {
  21. return m.ManagedEntity
  22. }
  23. func (m Datastore) GetManagedEntity() ManagedEntity {
  24. return m.ManagedEntity
  25. }
  26. func (m DistributedVirtualSwitch) GetManagedEntity() ManagedEntity {
  27. return m.ManagedEntity
  28. }
  29. func (m DistributedVirtualPortgroup) GetManagedEntity() ManagedEntity {
  30. return m.ManagedEntity
  31. }
  32. func (m Folder) GetManagedEntity() ManagedEntity {
  33. return m.ManagedEntity
  34. }
  35. func (m HostSystem) GetManagedEntity() ManagedEntity {
  36. return m.ManagedEntity
  37. }
  38. func (m Network) GetManagedEntity() ManagedEntity {
  39. return m.ManagedEntity
  40. }
  41. func (m ResourcePool) GetManagedEntity() ManagedEntity {
  42. return m.ManagedEntity
  43. }
  44. func (m VirtualMachine) GetManagedEntity() ManagedEntity {
  45. return m.ManagedEntity
  46. }