googleapis / googleapis/google-cloud-python

[async rest] Add support for async request / response interceptors for unsupported methods

Aperta
#16,280 1 commento 0 reazioni 1 assegnatario Rivendicata da @ohmayr Vedi su GitHub
priority: p2 type: feature request
Lingua principale
Python
Stelle
5.4k
Fork
1.8k
Merge medio
3g 4h
PR unite (30g)
122

Descrizione

The macro `shared_macros.create_interceptor_class` which generates an interceptor class for async / sync rest transport currently guards generation of asynchronous interceptor class methods for the following type of api methods:

- `lro`
- `extended_lro`
- `paged_result_field`

As we add support for the api methods mentioned above in the asynchronous rest transport class, we need to ensure that support is also added for interceptor class methods for the corresponding api methods. This can be achieved by updating and eventually removing the following condition within the macro:

```
% if (not is_async) or (is_async and not method.lro and not method.extended_lro and not method.paged_result_field) %}
```

The above condition / code change location can be looked up by searching for this issue url / number.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.