Azure / Azure/azure-sdk-for-python

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

Aperta
#46,142 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Redis Cache
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g 2h
PR unite (30g)
202

Descrizione

**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

Guida per i contributori

Apri la guida per i contributori

Direzione di ricerca

Inizia dalla definizione Swagger di Redis Enterprise alle righe 540-541 di redisenterprise.json e confronta la relativa dichiarazione PATCH con DatabasesOperations.begin_update nel pacchetto azure.mgmt.redisenterprise. Riproduci il problema dell'aggiornamento della persistenza e traccia il modo in cui l'SDK rappresenta tale operazione. Il lavoro è completato quando il client Python generato supporta il comportamento PATCH documentato per la persistenza del database, con una copertura per il percorso di aggiornamento segnalato.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
azure, python, redis
Ambito
api, cloud
Tipo di issue
Bug
Difficoltà
3/5
Tempo stimato
1-2 giorni
Stato di attività
Tranquilla
Chiarezza
Abbastanza chiara
Idoneità per principianti
48/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.