Skip to content

Commit cb2b8f5

Browse files
author
Pranshu Jain
committed
Add a new type of cluster action used for placing a VM. This action inherits from InitialPlacement action because it conveys the resource pool and host for placing the VM. In addition, it also has the VM's ConfigSpecwhich is used for indicating the recommended datastore for each virtual disk in VM's ConfigSpec
1 parent 4cce99f commit cb2b8f5

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

vim25/types/types.go

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9143,6 +9143,16 @@ func init() {
91439143
t["ClusterInitialPlacementAction"] = reflect.TypeOf((*ClusterInitialPlacementAction)(nil)).Elem()
91449144
}
91459145

9146+
type ClusterClusterInitialPlacementAction struct {
9147+
ClusterInitialPlacementAction
9148+
9149+
ConfigSpec *VirtualMachineConfigSpec `xml:"configSpec,omitempty"`
9150+
}
9151+
9152+
func init() {
9153+
t["ClusterClusterInitialPlacementAction"] = reflect.TypeOf((*ClusterClusterInitialPlacementAction)(nil)).Elem()
9154+
}
9155+
91469156
type ClusterIoFilterInfo struct {
91479157
IoFilterInfo
91489158

0 commit comments

Comments
 (0)