code: func flattenHostPortGroupSpec(d *schema.ResourceData, obj *types.HostPortGroupSpec) error {
  	d.Set("vlan_id", obj.VlanId)
  	if err := flattenHostNetworkPolicy(d, &obj.Policy); err != nil {
  		return err
  	}
  	return nil
  }
docs: // flattenHostPortGroupSpec reads various fields from a HostPortGroupSpec into
  // the passed in ResourceData.