vsphere/resource_vsphere_datastore_cluster.go
func resourceVSphereDatastoreClusterHasSDRSConfigChange(d *schema.ResourceData) bool {
	for k := range resourceVSphereDatastoreCluster().Schema {
		switch {
		case resourceVSphereDatastoreClusterHasSDRSConfigChangeExcluded(k):
			continue
		case d.HasChange(k):
			return true
		}
	}

	return false
}
func resourceVSphereDatastoreClusterHasSDRSConfigChange(d *schema.ResourceData) bool {
	for k := range resourceVSphereDatastoreCluster().Schema {
		switch {
		case resourceVSphereDatastoreClusterHasSDRSConfigChangeExcluded(k):
			continue
		case d.HasChange(k):
			return true
		}
	}

	return false
}
// resourceVSphereDatastoreClusterHasSDRSConfigChange checks all resource keys
// associated with storage DRS to see if there has been a change in the
// configuration of those keys. This helper is designed to detect no-ops in a
// SDRS configuration to see if we really need to send a configure API call to
// vSphere.