code: func flattenDVSSecurityPolicy(d *schema.ResourceData, obj *types.DVSSecurityPolicy) error {
  	if obj == nil {
  		return nil
  	}
  
  	structure.SetBoolPolicy(d, "allow_promiscuous", obj.AllowPromiscuous)
  	structure.SetBoolPolicy(d, "allow_mac_changes", obj.MacChanges)
  	structure.SetBoolPolicy(d, "allow_forged_transmits", obj.ForgedTransmits)
  	return nil
  }
docs: // flattenDVSSecurityPolicy reads various fields from a
  // DVSSecurityPolicy into the passed in ResourceData.