Azure / Azure/azure-sdk-for-python

[Key Vault] Add serialization method for models

オープン
#41,552 コメント 0 件 リアクション 0 件 担当者 1 名 @laiapat が担当を希望しています GitHub で見る
Client feature-request KeyVault
主要言語
Python
スター
5.6k
フォーク
3.4k
平均マージ
2日 2時間
マージ済み PR(30日)
213

説明

Feature request based on issues such as https://github.com/Azure/azure-sdk-for-python/issues/17102 and https://github.com/Azure/azure-sdk-for-python/issues/41261.

Now that KV is generating with TypeSpec, we should be able to more easily support model serialization. Serialization should take some factors into account:

- Client-facing models generally have different attribute names than their underlying, generated counterparts
- Only the former attributes should be exposed
- Serialized models should be compatible as input to client methods, since DPG methods accept model parameters as JSON
- To support this, client methods will need to be able to convert serialized client-facing models into their generated counterparts (like we already do today with `to_generated` helpers and direct instantiation)

The latter point can probably be considered as a separate feature request; model serialization can be a separate feature from round-tripping. When active work on this issue begins, a separate issue can be appropriately created if necessary.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。