vsphere/resource_vsphere_compute_cluster_vm_group.go
func flattenClusterVMGroup(d *schema.ResourceData, meta interface{}, obj *types.ClusterVmGroup) error {
	client, err := resourceVSphereComputeClusterVMGroupClient(meta)
	if err != nil {
		return err
	}

	results, err := virtualmachine.UUIDsForManagedObjectReferences(
		client,
		obj.Vm,
	)
	if err != nil {
		return err
	}

	return structure.SetBatch(d, map[string]interface{}{
		"virtual_machine_ids": results.UUIDs(),
	})
}
func flattenClusterVMGroup(d *schema.ResourceData, meta interface{}, obj *types.ClusterVmGroup) error {
	client, err := resourceVSphereComputeClusterVMGroupClient(meta)
	if err != nil {
		return err
	}

	results, err := virtualmachine.UUIDsForManagedObjectReferences(
		client,
		obj.Vm,
	)
	if err != nil {
		return err
	}

	return structure.SetBatch(d, map[string]interface{}{
		"virtual_machine_ids": results.UUIDs(),
	})
}
func flattenClusterVMGroup ( d * schema . ResourceData , meta interface { } , obj * types . ClusterVmGroup ) error { client , err := resourceVSphereComputeClusterVMGroupClient ( meta ) if err != nil { return err } results , err := virtualmachine . UUIDsForManagedObjectReferences ( client , obj . Vm , ) if err != nil { return err } return structure . SetBatch ( d , map [ string ] interface { } { " " : results . UUIDs ( ) , } ) }
// flattenClusterVmGroup saves a ClusterVmGroup into the supplied ResourceData.
flattenClusterVmGroup saves a ClusterVmGroup into the supplied ResourceData .