github.com/vmware/govmomi@v0.37.1/simulator/esx/datacenter.go (about)

     1  /*
     2  Copyright (c) 2017-2023 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 esx
    18  
    19  import (
    20  	"github.com/vmware/govmomi/vim25/mo"
    21  	"github.com/vmware/govmomi/vim25/types"
    22  )
    23  
    24  // Datacenter is the default template for Datacenter properties.
    25  // Capture method:
    26  // govc datacenter.info -dump
    27  var Datacenter = mo.Datacenter{
    28  	ManagedEntity: mo.ManagedEntity{
    29  		ExtensibleManagedObject: mo.ExtensibleManagedObject{
    30  			Self:           types.ManagedObjectReference{Type: "Datacenter", Value: "ha-datacenter"},
    31  			Value:          nil,
    32  			AvailableField: nil,
    33  		},
    34  		Parent:              (*types.ManagedObjectReference)(nil),
    35  		CustomValue:         nil,
    36  		OverallStatus:       "",
    37  		ConfigStatus:        "",
    38  		ConfigIssue:         nil,
    39  		EffectiveRole:       nil,
    40  		Permission:          nil,
    41  		Name:                "ha-datacenter",
    42  		DisabledMethod:      nil,
    43  		RecentTask:          nil,
    44  		DeclaredAlarmState:  nil,
    45  		TriggeredAlarmState: nil,
    46  		AlarmActionsEnabled: (*bool)(nil),
    47  		Tag:                 nil,
    48  	},
    49  	VmFolder:        types.ManagedObjectReference{Type: "Folder", Value: "ha-folder-vm"},
    50  	HostFolder:      types.ManagedObjectReference{Type: "Folder", Value: "ha-folder-host"},
    51  	DatastoreFolder: types.ManagedObjectReference{Type: "Folder", Value: "ha-folder-datastore"},
    52  	NetworkFolder:   types.ManagedObjectReference{Type: "Folder", Value: "ha-folder-network"},
    53  	Datastore: []types.ManagedObjectReference{
    54  		{Type: "Datastore", Value: "57089c25-85e3ccd4-17b6-000c29d0beb3"},
    55  	},
    56  	Network: []types.ManagedObjectReference{
    57  		{Type: "Network", Value: "HaNetwork-VM Network"},
    58  	},
    59  	Configuration: types.DatacenterConfigInfo{},
    60  }