Azure / azure-sdk-for-python

This repository is for active development of the Azure SDK for Python. For consumers of the SDK we recommend visiting our public developer docs at https://docs.microsoft.com/python/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-python.
MIT License
4.37k stars 2.71k forks source link

[DPG] Access to important response headers #32571

Open annatisch opened 8 months ago

annatisch commented 8 months ago

Currently autorest generated methods only allow access to the response headers via either:

It's therefore difficult to access headers that are an important part of the response. For example, the "etag" returned from get_resource operation, as is the case for JobRouter SDK: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/communication/azure-communication-jobrouter/azure/communication/jobrouter/_operations/_operations.py#L1256

We need a design to make accessing this feel more integrated into the scenario.

lmazuel commented 8 months ago