vsphere/resource_vsphere_compute_cluster.go
func expandClusterVMToolsMonitoringSettings(d *schema.ResourceData) *types.ClusterVmToolsMonitoringSettings {
	obj := &types.ClusterVmToolsMonitoringSettings{
		FailureInterval:  int32(d.Get("ha_vm_failure_interval").(int)),
		MaxFailures:      int32(d.Get("ha_vm_maximum_resets").(int)),
		MaxFailureWindow: int32(d.Get("ha_vm_maximum_failure_window").(int)),
		MinUpTime:        int32(d.Get("ha_vm_minimum_uptime").(int)),
		VmMonitoring:     d.Get("ha_vm_monitoring").(string),
	}

	return obj
}
func expandClusterVMToolsMonitoringSettings(d *schema.ResourceData) *types.ClusterVmToolsMonitoringSettings {
	obj := &types.ClusterVmToolsMonitoringSettings{
		FailureInterval:  int32(d.Get("ha_vm_failure_interval").(int)),
		MaxFailures:      int32(d.Get("ha_vm_maximum_resets").(int)),
		MaxFailureWindow: int32(d.Get("ha_vm_maximum_failure_window").(int)),
		MinUpTime:        int32(d.Get("ha_vm_minimum_uptime").(int)),
		VmMonitoring:     d.Get("ha_vm_monitoring").(string),
	}

	return obj
}
func expandClusterVMToolsMonitoringSettings ( d * schema . ResourceData ) * types . ClusterVmToolsMonitoringSettings { obj := & types . ClusterVmToolsMonitoringSettings { FailureInterval : int32 ( d . Get ( " " ) . ( int ) ) , MaxFailures : int32 ( d . Get ( " " ) . ( int ) ) , MaxFailureWindow : int32 ( d . Get ( " " ) . ( int ) ) , MinUpTime : int32 ( d . Get ( " " ) . ( int ) ) , VmMonitoring : d . Get ( " " ) . ( string ) , } return obj }
// expandClusterVMToolsMonitoringSettings reads certain ResourceData keys and returns a
// ClusterVmToolsMonitoringSettings.
expandClusterVMToolsMonitoringSettings reads certain ResourceData keys and returns a ClusterVmToolsMonitoringSettings .