func flattenHostNetworkPolicy(d *schema.ResourceData, obj *types.HostNetworkPolicy) error {
	if err := flattenHostNetworkSecurityPolicy(d, obj.Security); err != nil {
		return err
	}
	if err := flattenHostNicTeamingPolicy(d, obj.NicTeaming); err != nil {
		return err
	}
	if err := flattenHostNetworkTrafficShapingPolicy(d, obj.ShapingPolicy); err != nil {
		return err
	}
	return nil
}
func flattenHostNetworkPolicy(d *schema.ResourceData, obj *types.HostNetworkPolicy) error {
	if err := flattenHostNetworkSecurityPolicy(d, obj.Security); err != nil {
		return err
	}
	if err := flattenHostNicTeamingPolicy(d, obj.NicTeaming); err != nil {
		return err
	}
	if err := flattenHostNetworkTrafficShapingPolicy(d, obj.ShapingPolicy); err != nil {
		return err
	}
	return nil
}
func flattenHostNetworkPolicy ( d * schema . ResourceData , obj * types . HostNetworkPolicy ) error { if err := flattenHostNetworkSecurityPolicy ( d , obj . Security ) ; err != nil { return err } if err := flattenHostNicTeamingPolicy ( d , obj . NicTeaming ) ; err != nil { return err } if err := flattenHostNetworkTrafficShapingPolicy ( d , obj . ShapingPolicy ) ; err != nil { return err } return nil }
// flattenHostNetworkPolicy reads various fields from a HostNetworkPolicy into
// the passed in ResourceData.
flattenHostNetworkPolicy reads various fields from a HostNetworkPolicy into the passed in ResourceData .