vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go
func expandCustomizationUserData(d *schema.ResourceData) types.CustomizationUserData {
	obj := types.CustomizationUserData{
		FullName: d.Get(cWindowsKeyPrefix + "." + "full_name").(string),
		OrgName:  d.Get(cWindowsKeyPrefix + "." + "organization_name").(string),
		ComputerName: &types.CustomizationFixedName{
			Name: d.Get(cWindowsKeyPrefix + "." + "computer_name").(string),
		},
		ProductId: d.Get(cWindowsKeyPrefix + "." + "product_key").(string),
	}
	return obj
}
func expandCustomizationUserData(d *schema.ResourceData) types.CustomizationUserData {
	obj := types.CustomizationUserData{
		FullName: d.Get(cWindowsKeyPrefix + "." + "full_name").(string),
		OrgName:  d.Get(cWindowsKeyPrefix + "." + "organization_name").(string),
		ComputerName: &types.CustomizationFixedName{
			Name: d.Get(cWindowsKeyPrefix + "." + "computer_name").(string),
		},
		ProductId: d.Get(cWindowsKeyPrefix + "." + "product_key").(string),
	}
	return obj
}
// expandCustomizationUserData reads certain ResourceData keys and
// returns a CustomizationUserData.