func flattenHostNetworkTrafficShapingPolicy(d *schema.ResourceData, obj *types.HostNetworkTrafficShapingPolicy) error {
	if obj.Enabled != nil {
		d.Set("shaping_enabled", *obj.Enabled)
	}
	d.Set("shaping_average_bandwidth", obj.AverageBandwidth)
	d.Set("shaping_burst_size", obj.BurstSize)
	d.Set("shaping_peak_bandwidth", obj.PeakBandwidth)
	return nil
}
func flattenHostNetworkTrafficShapingPolicy(d *schema.ResourceData, obj *types.HostNetworkTrafficShapingPolicy) error {
	if obj.Enabled != nil {
		d.Set("shaping_enabled", *obj.Enabled)
	}
	d.Set("shaping_average_bandwidth", obj.AverageBandwidth)
	d.Set("shaping_burst_size", obj.BurstSize)
	d.Set("shaping_peak_bandwidth", obj.PeakBandwidth)
	return nil
}
func flattenHostNetworkTrafficShapingPolicy ( d * schema . ResourceData , obj * types . HostNetworkTrafficShapingPolicy ) error { if obj . Enabled != nil { d . Set ( " " , * obj . Enabled ) } d . Set ( " " , obj . AverageBandwidth ) d . Set ( " " , obj . BurstSize ) d . Set ( " " , obj . PeakBandwidth ) return nil }
// flattenHostNetworkTrafficShapingPolicy reads various fields from a
// HostNetworkTrafficShapingPolicy into the passed in ResourceData.
flattenHostNetworkTrafficShapingPolicy reads various fields from a HostNetworkTrafficShapingPolicy into the passed in ResourceData .