vsphere/resource_vsphere_compute_cluster.go
func expandResourceVSphereComputeClusterDrsAdvancedOptions(d *schema.ResourceData) []types.BaseOptionValue {
	var opts []types.BaseOptionValue

	m := d.Get("drs_advanced_options").(map[string]interface{})
	for k, v := range m {
		opts = append(opts, &types.OptionValue{
			Key:   k,
			Value: types.AnyType(v),
		})
	}
	return opts
}
func expandResourceVSphereComputeClusterDrsAdvancedOptions(d *schema.ResourceData) []types.BaseOptionValue {
	var opts []types.BaseOptionValue

	m := d.Get("drs_advanced_options").(map[string]interface{})
	for k, v := range m {
		opts = append(opts, &types.OptionValue{
			Key:   k,
			Value: types.AnyType(v),
		})
	}
	return opts
}
func expandResourceVSphereComputeClusterDrsAdvancedOptions ( d * schema . ResourceData ) [ ] types . BaseOptionValue { var opts [ ] types . BaseOptionValue m := d . Get ( " " ) . ( map [ string ] interface { } ) for k , v := range m { opts = append ( opts , & types . OptionValue { Key : k , Value : types . AnyType ( v ) , } ) } return opts }
// expandResourceVSphereComputeClusterDrsAdvancedOptions reads certain
// ResourceData keys and returns a BaseOptionValue list designed for use as DRS
// advanced options.
expandResourceVSphereComputeClusterDrsAdvancedOptions reads certain ResourceData keys and returns a BaseOptionValue list designed for use as DRS advanced options .