vsphere/resource_vsphere_compute_cluster_vm_group.go
func resourceVSphereComputeClusterVMGroupObjects(
	d *schema.ResourceData,
	meta interface{},
) (*object.ClusterComputeResource, string, error) {
	if d.Id() != "" {
		return resourceVSphereComputeClusterVMGroupObjectsFromID(d, meta)
	}
	return resourceVSphereComputeClusterVMGroupObjectsFromAttributes(d, meta)
}
func resourceVSphereComputeClusterVMGroupObjects(
	d *schema.ResourceData,
	meta interface{},
) (*object.ClusterComputeResource, string, error) {
	if d.Id() != "" {
		return resourceVSphereComputeClusterVMGroupObjectsFromID(d, meta)
	}
	return resourceVSphereComputeClusterVMGroupObjectsFromAttributes(d, meta)
}
// resourceVSphereComputeClusterVMGroupObjects handles the fetching of the cluster and
// group name depending on what attributes are available:
// * If the resource ID is available, the data is derived from the ID.
// * If not, it's derived from the compute_cluster_id and name attributes.