vsphere/resource_vsphere_datastore_cluster_vm_anti_affinity_rule.go
func resourceVSphereDatastoreClusterVMAntiAffinityRuleApplySDRSConfigSpec(
	pod *object.StoragePod,
	spec types.StorageDrsConfigSpec,
) error {
	return storagepod.ApplyDRSConfiguration(
		&govmomi.Client{
			Client: pod.Client(),
		},
		pod,
		spec,
	)
}
func resourceVSphereDatastoreClusterVMAntiAffinityRuleApplySDRSConfigSpec(
	pod *object.StoragePod,
	spec types.StorageDrsConfigSpec,
) error {
	return storagepod.ApplyDRSConfiguration(
		&govmomi.Client{
			Client: pod.Client(),
		},
		pod,
		spec,
	)
}
func resourceVSphereDatastoreClusterVMAntiAffinityRuleApplySDRSConfigSpec ( pod * object . StoragePod , spec types . StorageDrsConfigSpec , ) error { return storagepod . ApplyDRSConfiguration ( & govmomi . Client { Client : pod . Client ( ) , } , pod , spec , ) }
// resourceVSphereDatastoreClusterVMAntiAffinityRuleApplySDRSConfigSpec
// applying a SDRS config spec for the
// vsphere_datastore_cluster_vm_anti_affinity_rule resource.
//
// This is wrapped to abstract the fact that we are deriving the client from
// the StoragePod. This is because helper workflows that have been created more
// recently (ie: cluster helpers) do this, and more than likely the storagepod
// helper will do it eventually as well. If there is ever an issue with this,
// it can be changed here.  There should be no issue though as govmomi.Client
// is mainly just vim25.Client with some additional session helper bits that is
// not normally needed during normal operation.
resourceVSphereDatastoreClusterVMAntiAffinityRuleApplySDRSConfigSpec applying a SDRS config spec for the vsphere_datastore_cluster_vm_anti_affinity_rule resource . This is wrapped to abstract the fact that we are deriving the client from the StoragePod . This is because helper workflows that have been created more recently ( ie : cluster helpers ) do this and more than likely the storagepod helper will do it eventually as well . If there is ever an issue with this it can be changed here . There should be no issue though as govmomi . Client is mainly just vim25 . Client with some additional session helper bits that is not normally needed during normal operation .