Azure / Azure/azure-sdk-for-python
Microsoft.Cache/redisEnterprise/databases does not support PATCH even though the documentation suggests so
- Langage dominant
- Python
- Étoiles
- 5.6k
- Forks
- 3.4k
- Merge moyen
- 2 j 2 h
- PR mergées (30 j)
- 213
Description
**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
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par la définition Swagger de Redis Enterprise aux lignes 540-541 de redisenterprise.json et comparez sa déclaration PATCH avec DatabasesOperations.begin_update dans le package azure.mgmt.redisenterprise. Reproduisez l’échec de mise à jour de la persistance et suivez la manière dont le SDK représente cette opération. Le travail est terminé lorsque le client Python généré prend en charge le comportement PATCH documenté pour la persistance de la base de données, avec une couverture du chemin de mise à jour signalé.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- azure, python, redis
- Domaine
- api, cloud
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- Calme
- Clarté
- Plutôt claire
- Accessibilité débutants
- 48/100