github.com/vmware/govmomi@v0.37.2/vim25/mo/extra.go (about)

     1  /*
     2  Copyright (c) 2014 VMware, Inc. All Rights Reserved.
     3  
     4  Licensed under the Apache License, Version 2.0 (the "License");
     5  you may not use this file except in compliance with the License.
     6  You may obtain a copy of the License at
     7  
     8      http://www.apache.org/licenses/LICENSE-2.0
     9  
    10  Unless required by applicable law or agreed to in writing, software
    11  distributed under the License is distributed on an "AS IS" BASIS,
    12  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    13  See the License for the specific language governing permissions and
    14  limitations under the License.
    15  */
    16  
    17  package mo
    18  
    19  type IsManagedEntity interface {
    20  	GetManagedEntity() ManagedEntity
    21  }
    22  
    23  func (m ComputeResource) GetManagedEntity() ManagedEntity {
    24  	return m.ManagedEntity
    25  }
    26  
    27  func (m Datacenter) GetManagedEntity() ManagedEntity {
    28  	return m.ManagedEntity
    29  }
    30  
    31  func (m Datastore) GetManagedEntity() ManagedEntity {
    32  	return m.ManagedEntity
    33  }
    34  
    35  func (m DistributedVirtualSwitch) GetManagedEntity() ManagedEntity {
    36  	return m.ManagedEntity
    37  }
    38  
    39  func (m DistributedVirtualPortgroup) GetManagedEntity() ManagedEntity {
    40  	return m.ManagedEntity
    41  }
    42  
    43  func (m Folder) GetManagedEntity() ManagedEntity {
    44  	return m.ManagedEntity
    45  }
    46  
    47  func (m HostSystem) GetManagedEntity() ManagedEntity {
    48  	return m.ManagedEntity
    49  }
    50  
    51  func (m Network) GetManagedEntity() ManagedEntity {
    52  	return m.ManagedEntity
    53  }
    54  
    55  func (m ResourcePool) GetManagedEntity() ManagedEntity {
    56  	return m.ManagedEntity
    57  }
    58  
    59  func (m VirtualMachine) GetManagedEntity() ManagedEntity {
    60  	return m.ManagedEntity
    61  }