Azure / Azure/azure-sdk-for-python

Microsoft.Cache/redisEnterprise/databases does not support PATCH even though the documentation suggests so

Abierto
#46,142 0 comentarios 0 reacciones 0 asignados Ver en GitHub
Redis Cache
Lenguaje dominante
Python
Estrellas
5.6k
Forks
3.4k
Merge medio
2 d 2 h
PR fusionados (30 d)
213

Descripción

**Package Name**: azure mgmt redisenterprise

**Describe the bug**
Customer attempted to use the RedisEnterpriseManagementClient class to update the database persistence configuration using the client.databases.begin_update method. Based on the Python SDK documentation, persistence is available as a model in the azure mgmt redisenterprise package. However, the customer encountered
error while attempting to update the persistence settings through the SDK.

Reference documents :
Persistence package : [azure.mgmt.redisenterprise package | Microsoft Learn](https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fpython%2Fapi%2Fazure-mgmt-redisenterprise%2Fazure.mgmt.redisenterprise%3Fview%3Dazure-python&data=05%7C02%7Cabhijitch%40microsoft.com%7C76c8c59cd5f14f935a9708de6798535e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C639062101122708186%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=iQJ%2B8U6nD6DtRAWAJrflEfQ8qka9JTRTgP1Iq03dBVw%3D&reserved=0)
Database operations : [azure.mgmt.redisenterprise.operations.DatabasesOperations class | Microsoft Learn](https://nam06.safelinks.protection.outlook.com/?url=https%3A%2F%2Flearn.microsoft.com%2Fen-us%2Fpython%2Fapi%2Fazure-mgmt-redisenterprise%2Fazure.mgmt.redisenterprise%3Fview%3Dazure-python&data=05%7C02%7Cabhijitch%40microsoft.com%7C76c8c59cd5f14f935a9708de6798535e%7C72f988bf86f141af91ab2d7cd011db47%7C1%7C0%7C639062101122708186%7CUnknown%7CTWFpbGZsb3d8eyJFbXB0eU1hcGkiOnRydWUsIlYiOiIwLjAuMDAwMCIsIlAiOiJXaW4zMiIsIkFOIjoiTWFpbCIsIldUIjoyfQ%3D%3D%7C0%7C%7C%7C&sdata=iQJ%2B8U6nD6DtRAWAJrflEfQ8qka9JTRTgP1Iq03dBVw%3D&reserved=0)

Note: this might have been generated from the current redisenterpise swagger definition https://github.com/Azure/azure-rest-api-specs/blob/55fc3e7d12df68485d19b10847f24c95579a06f4/specification/redisenterprise/resource-manager/Microsoft.Cache/RedisEnterprise/stable/2025-07-01/redisenterprise.json#L540-L541

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

Comienza con la definición de Swagger de Redis Enterprise en las líneas 540-541 de redisenterprise.json y compara su declaración PATCH con DatabasesOperations.begin_update en el paquete azure.mgmt.redisenterprise. Reproduce el fallo de actualización de la persistencia y sigue cómo representa el SDK esa operación. Se considera terminado cuando el cliente Python generado admita el comportamiento PATCH documentado para la persistencia de la base de datos y exista cobertura para la ruta de actualización indicada.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
azure, python, redis
Área
api, cloud
Tipo de issue
Error
Dificultad
3/5
Tiempo estimado
1-2 días
Estado de actividad
Tranquilo
Claridad
Bastante claro
Aptitud para principiantes
48/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.