github.com/vmware/govmomi@v0.51.0/eam/mo/eam_object.go (about)

     1  // © Broadcom. All Rights Reserved.
     2  // The term “Broadcom” refers to Broadcom Inc. and/or its subsidiaries.
     3  // SPDX-License-Identifier: Apache-2.0
     4  
     5  package mo
     6  
     7  import (
     8  	"github.com/vmware/govmomi/eam/types"
     9  	vim "github.com/vmware/govmomi/vim25/types"
    10  )
    11  
    12  // EamObject contains the fields common to all EAM objects.
    13  type EamObject struct {
    14  	Self  vim.ManagedObjectReference `json:"self"`
    15  	Issue []types.BaseIssue          `json:"issue,omitempty"`
    16  }
    17  
    18  func (m EamObject) String() string {
    19  	return m.Self.String()
    20  }
    21  
    22  func (m EamObject) Reference() vim.ManagedObjectReference {
    23  	return m.Self
    24  }