@@ -93214,7 +93214,7 @@ func init() {
9321493214//
9321593215// Consider a VM that needs to be anti-affined with a VM that has either
9321693216// tag-2 or tag-3 attached to it. This can be expressed by specifying
93217- // `VirtualMachineVmToVmGroupsAntiAffinity ` policy in this VM's
93217+ // `VmToVmGroupsAntiAffinity ` policy in this VM's
9321893218// `VirtualMachineConfigSpec.vmPlacementPolicies` or
9321993219// `VirtualMachineRelocateSpec.vmPlacementPolicies` and it would imply:
9322093220// \- This VM will be anti-affined with every VM that has tag-2.
@@ -93239,21 +93239,21 @@ func init() {
9323993239// VMs that have "tag-3". Likewise for VMs with "tag-3".
9324093240//
9324193241// Note:
93242- // \- This placement policy is different than `VirtualMachineVmVmAntiAffinity `
93243- // because `VirtualMachineVmVmAntiAffinity ` allows specifying only 1 VM group
93242+ // \- This placement policy is different than `VmVmAntiAffinity `
93243+ // because `VmVmAntiAffinity ` allows specifying only 1 VM group
9324493244// and all the VMs within that group become anti-affined with each other,
9324593245// whereas, this placement policy allows anti-affining a given VM (with
9324693246// a given tag) with multiple groups VMs (represented via different tags).
93247- type VirtualMachineVmToVmGroupsAntiAffinity struct {
93247+ type VmToVmGroupsAntiAffinity struct {
9324893248 VmPlacementPolicy
9324993249
93250- // Tag identifying this VM to associate this `VirtualMachineVmToVmGroupsAntiAffinity `
93250+ // Tag identifying this VM to associate this `VmToVmGroupsAntiAffinity `
9325193251 // placement policy with this VM.
9325293252 //
93253- // When a `VirtualMachineVmToVmGroupsAntiAffinity ` placement policy is specified for a
93253+ // When a `VmToVmGroupsAntiAffinity ` placement policy is specified for a
9325493254 // VM, then one of the tags attached to this VM needs to link this VM with
9325593255 // the corresponding compute-policy representing this
93256- // `VirtualMachineVmToVmGroupsAntiAffinity ` placement policy. This is needed because
93256+ // `VmToVmGroupsAntiAffinity ` placement policy. This is needed because
9325793257 // when a VM is placed by vSphere DRS or HA, the compute-policies to be
9325893258 // enforced are derived from the tag(s) attached to that VM.
9325993259 // For example, consider a VM with tag-1 needs to be anti-affined with VMs
@@ -93267,16 +93267,16 @@ type VirtualMachineVmToVmGroupsAntiAffinity struct {
9326793267 // Tags identifying the "other" VM groups that need to be anti-affined with
9326893268 // this VM.
9326993269 //
93270- // A VM with any tag from the list of tags in `VirtualMachineVmToVmGroupsAntiAffinity .antiAffinedVmGroupTags`
93271- // will be anti-affined with the VM that has `VirtualMachineVmToVmGroupsAntiAffinity .selfTag` tag.
93270+ // A VM with any tag from the list of tags in `VmToVmGroupsAntiAffinity .antiAffinedVmGroupTags`
93271+ // will be anti-affined with the VM that has `VmToVmGroupsAntiAffinity .selfTag` tag.
9327293272 // any VM that has any of the other tags in
9327393273 //
9327493274 // This field must have at least one value that must be different from the
93275- // value of `VirtualMachineVmToVmGroupsAntiAffinity .selfTag`. If this field is left unset or empty, then
93276- // this `VirtualMachineVmToVmGroupsAntiAffinity ` placement policy will be ignored while
93275+ // value of `VmToVmGroupsAntiAffinity .selfTag`. If this field is left unset or empty, then
93276+ // this `VmToVmGroupsAntiAffinity ` placement policy will be ignored while
9327793277 // placing this VM.
9327893278 AntiAffinedVmGroupTags []string `xml:"antiAffinedVmGroupTags,omitempty" json:"antiAffinedVmGroupTags,omitempty"`
93279- // Specifies the strictness of this `VirtualMachineVmToVmGroupsAntiAffinity ` placement
93279+ // Specifies the strictness of this `VmToVmGroupsAntiAffinity ` placement
9328093280 // policy while placing a VM for which this policy has been specified.
9328193281 //
9328293282 // For details, see
@@ -93286,7 +93286,7 @@ type VirtualMachineVmToVmGroupsAntiAffinity struct {
9328693286 // `PreferredDuringPlacementIgnoredDuringExecution`
9328793287 // will be assumed.
9328893288 PolicyStrictness string `xml:"policyStrictness,omitempty" json:"policyStrictness,omitempty"`
93289- // Specifies the topology for enforcing this `VirtualMachineVmToVmGroupsAntiAffinity `
93289+ // Specifies the topology for enforcing this `VmToVmGroupsAntiAffinity `
9329093290 // placement policy while placing a VM for which this policy is specified.
9329193291 //
9329293292 // For possible values, see
@@ -93295,11 +93295,11 @@ type VirtualMachineVmToVmGroupsAntiAffinity struct {
9329593295 // For example:
9329693296 // \- If this is set to
9329793297 // `VSphereZone`
93298- // for a `VirtualMachineVmToVmGroupsAntiAffinity ` placement, then the groups of VMs
93298+ // for a `VmToVmGroupsAntiAffinity ` placement, then the groups of VMs
9329993299 // anti-affined by this policy should be placed in different vSphere Zones.
9330093300 // \- If this is set to
9330193301 // `Host`,
93302- // for a `VirtualMachineVmToVmGroupsAntiAffinity ` placement, then the groups of VMs
93302+ // for a `VmToVmGroupsAntiAffinity ` placement, then the groups of VMs
9330393303 // anti-affined by this policy should be placed on different ESXi hosts.
9330493304 //
9330593305 // If this field is left unset, then the default value of
@@ -93308,13 +93308,13 @@ type VirtualMachineVmToVmGroupsAntiAffinity struct {
9330893308}
9330993309
9331093310func init() {
93311- t["VirtualMachineVmToVmGroupsAntiAffinity "] = reflect.TypeOf((*VirtualMachineVmToVmGroupsAntiAffinity )(nil)).Elem()
93312- minAPIVersionForType["VirtualMachineVmToVmGroupsAntiAffinity "] = "9.0.0.0"
93311+ t["VmToVmGroupsAntiAffinity "] = reflect.TypeOf((*VmToVmGroupsAntiAffinity )(nil)).Elem()
93312+ minAPIVersionForType["VmToVmGroupsAntiAffinity "] = "9.0.0.0"
9331393313}
9331493314
9331593315// Specification of a VM placement policy that affines a group of
9331693316// VMs among themselves.
93317- type VirtualMachineVmVmAffinity struct {
93317+ type VmVmAffinity struct {
9331893318 VmPlacementPolicy
9331993319
9332093320 // Name of the vSphere tag identifying the VMs that need to be affined
@@ -93323,17 +93323,17 @@ type VirtualMachineVmVmAffinity struct {
9332393323 // When this type of placement policy is specified for a VM
9332493324 // (via `VirtualMachineConfigSpec.vmPlacementPolicies` or
9332593325 // `VirtualMachineRelocateSpec.vmPlacementPolicies`), then that VM is affined with
93326- // all the other VMs that have `VirtualMachineVmVmAffinity .affinedVmsTagName` a vSphere tag.
93326+ // all the other VMs that have `VmVmAffinity .affinedVmsTagName` a vSphere tag.
9332793327 // This means that DRS will attempt to place all the VMs with
93328- // `VirtualMachineVmVmAffinity .affinedVmsTagName` on the same target host/cluster/vSphereZone
93328+ // `VmVmAffinity .affinedVmsTagName` on the same target host/cluster/vSphereZone
9332993329 // (where the topology of the target is specified by
93330- // `VirtualMachineVmVmAffinity .policyTopology`).
93330+ // `VmVmAffinity .policyTopology`).
9333193331 //
93332- // Example: VmVmAffinity placement policy with `VirtualMachineVmVmAffinity .affinedVmsTagName`
93332+ // Example: VmVmAffinity placement policy with `VmVmAffinity .affinedVmsTagName`
9333393333 // equal to "test-workloads" would mean that all the VMs that have a
9333493334 // vSphere tag with the name "test-workloads" should be placed on the
9333593335 // same target host/cluster/vSphereZone (as indicated by
93336- // `VirtualMachineVmVmAffinity .policyTopology`).
93336+ // `VmVmAffinity .policyTopology`).
9333793337 AffinedVmsTagName string `xml:"affinedVmsTagName" json:"affinedVmsTagName"`
9333893338 // Specifies the strictness of this VmVmAffinity placement
9333993339 // policy while placing a VM for which this policy is specified.
@@ -93354,11 +93354,11 @@ type VirtualMachineVmVmAffinity struct {
9335493354 // For example:
9335593355 // \- If this is set to
9335693356 // `VSphereZone`,
93357- // the VMs that have `VirtualMachineVmVmAffinity .affinedVmsTagName`
93357+ // the VMs that have `VmVmAffinity .affinedVmsTagName`
9335893358 // tag attached to them should be placed in the same vSphere Zone.
9335993359 // \- If this is set to
9336093360 // `Host`,
93361- // the VMs that have `VirtualMachineVmVmAffinity .affinedVmsTagName`
93361+ // the VMs that have `VmVmAffinity .affinedVmsTagName`
9336293362 // tag attached to them should be placed on the same ESXi host.
9336393363 //
9336493364 // If this field is left unset, then the default value of
@@ -93367,13 +93367,13 @@ type VirtualMachineVmVmAffinity struct {
9336793367}
9336893368
9336993369func init() {
93370- t["VirtualMachineVmVmAffinity "] = reflect.TypeOf((*VirtualMachineVmVmAffinity )(nil)).Elem()
93371- minAPIVersionForType["VirtualMachineVmVmAffinity "] = "9.0.0.0"
93370+ t["VmVmAffinity "] = reflect.TypeOf((*VmVmAffinity )(nil)).Elem()
93371+ minAPIVersionForType["VmVmAffinity "] = "9.0.0.0"
9337293372}
9337393373
9337493374// Specification of a VM placement policy that anti-affines a group of
9337593375// VMs among themselves.
93376- type VirtualMachineVmVmAntiAffinity struct {
93376+ type VmVmAntiAffinity struct {
9337793377 VmPlacementPolicy
9337893378
9337993379 // Name of the vSphere tag identifying the VMs that need to be anti-affined
@@ -93382,17 +93382,17 @@ type VirtualMachineVmVmAntiAffinity struct {
9338293382 // When this type of placement policy is specified for a VM,
9338393383 // (via `VirtualMachineConfigSpec.vmPlacementPolicies` or
9338493384 // `VirtualMachineRelocateSpec.vmPlacementPolicies`), then that VM is anti-affined
93385- // to all the other VMs that have `VirtualMachineVmVmAntiAffinity .antiAffinedVmsTagName`. This means
93385+ // to all the other VMs that have `VmVmAntiAffinity .antiAffinedVmsTagName`. This means
9338693386 // that DRS will attempt to place all the VMs with
93387- // `VirtualMachineVmVmAntiAffinity .antiAffinedVmsTagName` tag on different target hosts/clusters/
93387+ // `VmVmAntiAffinity .antiAffinedVmsTagName` tag on different target hosts/clusters/
9338893388 // vSphereZones (where the topology of the target is specified by
93389- // `VirtualMachineVmVmAntiAffinity .policyTopology`).
93389+ // `VmVmAntiAffinity .policyTopology`).
9339093390 //
9339193391 // For example - VmVmAntiAffinity placement policy with
93392- // `VirtualMachineVmVmAntiAffinity .antiAffinedVmsTagName` equal to "prod-workloads" would mean that
93392+ // `VmVmAntiAffinity .antiAffinedVmsTagName` equal to "prod-workloads" would mean that
9339393393 // all the VMs that have a vSphere tag with the name "prod-workloads" should
9339493394 // be placed on different target hosts/clusters/vSphereZones (as indicated by
93395- // `VirtualMachineVmVmAntiAffinity .policyTopology`).
93395+ // `VmVmAntiAffinity .policyTopology`).
9339693396 AntiAffinedVmsTagName string `xml:"antiAffinedVmsTagName" json:"antiAffinedVmsTagName"`
9339793397 // Specifies the strictness of this VmVmAntiAffinity placement
9339893398 // policy while placing a VM for which this policy is specified.
@@ -93414,11 +93414,11 @@ type VirtualMachineVmVmAntiAffinity struct {
9341493414 // For example:
9341593415 // \- If this is set to
9341693416 // `VSphereZone`, the VMs
93417- // that have `VirtualMachineVmVmAntiAffinity .antiAffinedVmsTagName` tag attached to them should be
93417+ // that have `VmVmAntiAffinity .antiAffinedVmsTagName` tag attached to them should be
9341893418 // placed in different vSphere Zones.
9341993419 // \- If this is set to
9342093420 // `Host`, the VMs that
93421- // have `VirtualMachineVmVmAntiAffinity .antiAffinedVmsTagName` tag attached to them should be placed
93421+ // have `VmVmAntiAffinity .antiAffinedVmsTagName` tag attached to them should be placed
9342293422 // on different ESXi hosts (but they may be placed in the same vSphere Zone).
9342393423 //
9342493424 // If this field is left unset, then the default value of
@@ -93427,8 +93427,8 @@ type VirtualMachineVmVmAntiAffinity struct {
9342793427}
9342893428
9342993429func init() {
93430- t["VirtualMachineVmVmAntiAffinity "] = reflect.TypeOf((*VirtualMachineVmVmAntiAffinity )(nil)).Elem()
93431- minAPIVersionForType["VirtualMachineVmVmAntiAffinity "] = "9.0.0.0"
93430+ t["VmVmAntiAffinity "] = reflect.TypeOf((*VmVmAntiAffinity )(nil)).Elem()
93431+ minAPIVersionForType["VmVmAntiAffinity "] = "9.0.0.0"
9343293432}
9343393433
9343493434// This data object type encapsulates configuration settings
@@ -97358,7 +97358,7 @@ func init() {
9735897358// clients to first create separate vCenter constructs for expressing the same
9735997359// constraint/preference. For example, if a VM's `VirtualMachineConfigSpec` or
9736097360// `VirtualMachineRelocateSpec` has an affinity or anti-affinity towards other VMs
97361- // (see `VirtualMachineVmVmAffinity ` and `VirtualMachineVmVmAntiAffinity `), then vSphere DRS and
97361+ // (see `VmVmAffinity ` and `VmVmAntiAffinity `), then vSphere DRS and
9736297362// vSphere HA can interpret and enforce that desired affinity/anti-affinity
9736397363// without requiring the client to first create a cluster level
9736497364// `ClusterAffinityRuleSpec` or
0 commit comments