vsphere/internal/vmworkflow/virtual_machine_customize_subresource.go
func expandCustomizationLinuxPrep(d *schema.ResourceData) *types.CustomizationLinuxPrep {
	obj := &types.CustomizationLinuxPrep{
		HostName: &types.CustomizationFixedName{
			Name: d.Get(cLinuxKeyPrefix + "." + "host_name").(string),
		},
		Domain:     d.Get(cLinuxKeyPrefix + "." + "domain").(string),
		TimeZone:   d.Get(cLinuxKeyPrefix + "." + "time_zone").(string),
		HwClockUTC: structure.GetBoolPtr(d, cLinuxKeyPrefix+"."+"hw_clock_utc"),
	}
	return obj
}
func expandCustomizationLinuxPrep(d *schema.ResourceData) *types.CustomizationLinuxPrep {
	obj := &types.CustomizationLinuxPrep{
		HostName: &types.CustomizationFixedName{
			Name: d.Get(cLinuxKeyPrefix + "." + "host_name").(string),
		},
		Domain:     d.Get(cLinuxKeyPrefix + "." + "domain").(string),
		TimeZone:   d.Get(cLinuxKeyPrefix + "." + "time_zone").(string),
		HwClockUTC: structure.GetBoolPtr(d, cLinuxKeyPrefix+"."+"hw_clock_utc"),
	}
	return obj
}
// expandCustomizationLinuxPrep reads certain ResourceData keys and
// returns a CustomizationLinuxPrep.