code: 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
  }
docs: // flattenHostNetworkPolicy reads various fields from a HostNetworkPolicy into
  // the passed in ResourceData.