googleapis / googleapis/google-cloud-python
[async REST] Remove guards for async rest transport and async client generation once async REST support is GA
- Linguagem predominante
- Python
- Estrelas
- 5.4k
- Forks
- 1.8k
- Merge médio
- 2d 23h
- PRs com merge (30d)
- 123
Descrição
Once support for async `REST` transport goes from `experimental` -> `GA`,
we need to remove the following conditions that guard the generation of the async rest transport and the async client:
from `rest_asyncio.py.j2`:
```
{% set rest_async_io_enabled = api.all_library_settings[api.naming.proto_package].python_settings.experimental_features.rest_async_io_enabled %}
{% if rest_async_io_enabled %}
..code
{% endif %}{# if rest_async_io_enabled #}
```
from `async_client.py.j2`:
```
{% set rest_async_io_enabled = api.all_library_settings[api.naming.proto_package].python_settings.experimental_features.rest_async_io_enabled %}
{% set is_grpc_transport = True if 'grpc' in opts.transport else False %}
{% if rest_async_io_enabled or is_grpc_transport %}
..code
{% endif %}{# if rest_async_io_enabled and is_grpc_transport #}
```
Making this change wil generate the relevant files i.e `rest_asyncio.py` and `async_client.py` unconditionally for GAPICs.
Guia de contribuição
Direção de pesquisa
Comece lendo rest_asyncio.py.j2 e async_client.py.j2, com foco nas proteções de funcionalidades experimentais em torno do código gerado. Inspecione a saída do gerador para GAPICs e confirme que rest_asyncio.py e async_client.py são produzidos incondicionalmente assim que o suporte a REST assíncrono estiver GA.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- python
- Domínio
- build-system, tooling
- Tipo de issue
- Refatoração
- Dificuldade
- 2/5
- Tempo estimado
- 1-3 horas
- Status de atividade
- Pouca atividade
- Clareza
- Claramente especificada
- Facilidade para iniciantes
- 68/100