I have a resource which can either generate a keypair or upload one and the schema has fields which conflict depending on the use case. This works create for normal crud operations.
However on the import i have no way in the API to detect whether its a generated or uploaded, and I query the relevant fields with
d.Get("file_data") for example to see it its set.
Is there a way to handle this?