code: func flattenHostNicTeamingPolicy(d *schema.ResourceData, obj *types.HostNicTeamingPolicy) error {
  	if obj.RollingOrder != nil {
  		v := *obj.RollingOrder
  		d.Set("failback", !v)
  	}
  	if obj.NotifySwitches != nil {
  		d.Set("notify_switches", obj.NotifySwitches)
  	}
  	d.Set("teaming_policy", obj.Policy)
  	if err := flattenHostNicFailureCriteria(d, obj.FailureCriteria); err != nil {
  		return err
  	}
  	if err := flattenHostNicOrderPolicy(d, obj.NicOrder); err != nil {
  		return err
  	}
  	return nil
  }
docs: // flattenHostNicTeamingPolicy reads various fields from a HostNicTeamingPolicy
  // into the passed in ResourceData.